Skip to content

Commit

Permalink
chore: update prerelease and release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
immortal-tofu committed Feb 7, 2024
1 parent eb539d8 commit d4f5b21
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
on:
release:
types: [created]
types: [released]

jobs:
publish:
Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/publishprerelease.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
on:
release:
types: [prereleased]

jobs:
publish:
if: github.event_name == 'release' && github.event.action == 'published'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18.x
- run: npm ci
- run: npm test
- run: npm run build
- uses: JS-DevTools/npm-publish@0f451a94170d1699fd50710966d48fb26194d939
with:
tag: prerelease
token: ${{ secrets.NPM_TOKEN }}

0 comments on commit d4f5b21

Please sign in to comment.