2323 steps :
2424 - uses : actions/checkout@v4
2525 with :
26- token : ${{ secrets.GITHUB_TOKEN }}
26+ ssh-key : ${{ secrets.DEPLOY_KEY }}
2727 - name : Check if on main branch
2828 run : |
2929 if [[ $GITHUB_REF != 'refs/heads/main' ]]; then
@@ -36,16 +36,23 @@ jobs:
3636 cache : ' npm'
3737 registry-url : ' https://registry.npmjs.org'
3838 scope : ' @workfront'
39- - run : npm ci
39+ - run : npm ci --no-fund --no-audit
4040 - name : Bump package version
4141 run : |
4242 git config --global user.name 'github-actions[bot]'
4343 git config --global user.email 'github-actions[bot]@users.noreply.github.com'
4444 echo "Bumping version as ${{ github.event.inputs.SEMVER_TYPE }}"
45- npm version ${{ github.event.inputs.SEMVER_TYPE }}
46- VERSION=$(node -p "require('./package.json').version")
45+ npm version --no-commit-hooks ${{ github.event.inputs.SEMVER_TYPE }}
4746 git push origin main --follow-tags
48- - run : npm publish --provenance --access public
47+ - name : Publish to NPM
48+ run : npm publish --provenance --access public
4949 env :
5050 NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
51- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
51+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
52+ - name : Draft release
53+ run : |
54+ VERSION=$(node -p "require('./package.json').version")
55+ gh release create v$VERSION --generate-notes --draft --verify-tag --fail-on-no-commits
56+ env :
57+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
58+ VERSION : ${{ inputs.next_version }}
0 commit comments