Skip to content

Commit

Permalink
feat: add auto publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Kabir-Ivan committed Jul 2, 2024
1 parent 2408234 commit 6d72c57
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
name: NPM publish

on:
workflow_dispatch:
inputs:
Expand All @@ -11,6 +10,8 @@ on:
- patch
- minor
- major
permissions:
contents: write
jobs:
name: Publishing to NPM
runs-on: ubuntu-latest
Expand All @@ -26,5 +27,6 @@ jobs:
- run: npm run build
- run: npm run release -- --release-as ${{ github.event.inputs.versionType }}
- run: npm publish --dry-run
- run: git push --follow-tags --dry-run
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 6d72c57

Please sign in to comment.