File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212 - patch
1313 - minor
1414 - major
15+ dry-run :
16+ description : ' Dry run (test without publishing)'
17+ required : false
18+ type : boolean
19+ default : false
1520
1621permissions :
1722 contents : write
7580 fi
7681
7782 - name : Commit, tag & push
83+ if : inputs.dry-run == false
7884 run : |
7985 NEW_VERSION=${{ steps.bump.outputs.new_version }}
8086 git add -A
8793 git push origin main --follow-tags
8894
8995 - name : Publish to npm
96+ if : inputs.dry-run == false
9097 run : npm publish --provenance --access public
9198
99+ - name : Publish to npm (dry run)
100+ if : inputs.dry-run == true
101+ run : npm publish --provenance --access public --dry-run
102+
92103 - name : Create GitHub Release
104+ if : inputs.dry-run == false
93105 uses : softprops/action-gh-release@v2
94106 with :
95107 tag_name : v${{ steps.bump.outputs.new_version }}
You can’t perform that action at this time.
0 commit comments