Skip to content

Commit

Permalink
feat: setup gh actions (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
byt3h3ad authored Jun 13, 2024
1 parent ae89642 commit f7a811e
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/beta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Publish to npm

on:
push:
branches:
- dev
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: install pnpm
uses: pnpm/action-setup@v4
- name: use node.js
uses: actions/setup-node@v4
with:
cache: "pnpm"
registry-url: "https://registry.npmjs.org"
- name: install dependencies
run: pnpm install
- name: build and publish
run: pnpm pub:beta
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
24 changes: 24 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Publish to npm

on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: install pnpm
uses: pnpm/action-setup@v4
- name: use node.js
uses: actions/setup-node@v4
with:
cache: "pnpm"
registry-url: "https://registry.npmjs.org"
- name: install dependencies
run: pnpm install
- name: build and publish
run: pnpm pub
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

0 comments on commit f7a811e

Please sign in to comment.