Skip to content

Commit

Permalink
Seperate workflows for separate concerns
Browse files Browse the repository at this point in the history
  • Loading branch information
simonireilly committed Jun 9, 2022
1 parent 1c97060 commit 72021d2
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/beta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Node.js Package

on:
release:
types: [prereleased]

jobs:
publish-npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- uses: actions/setup-node@v3
with:
node-version: 16
registry-url: https://registry.npmjs.org/
cache: "yarn"

- run: yarn

- run: yarn build

- run: npm publish --tag beta
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
25 changes: 25 additions & 0 deletions .github/workflows/latest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Node.js Package

on:
release:
types: [released]

jobs:
publish-npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- uses: actions/setup-node@v3
with:
node-version: 16
registry-url: https://registry.npmjs.org/
cache: "yarn"

- run: yarn

- run: yarn build

- run: npm publish --tag latest
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

0 comments on commit 72021d2

Please sign in to comment.