File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- # https://github.com/google-github-actions/release-please-action?tab=readme-ov-file#basic-configuration
1+ # https://github.com/google-github-actions/release-please-action?tab=readme-ov-file#automating-publication-to-npm
22on :
33 push :
44 branches :
55 - main
6-
76name : release-please
8-
97jobs :
108 release-please :
119 runs-on : ubuntu-latest
1210 steps :
1311 - uses : google-github-actions/release-please-action@v4
12+ id : release
1413 with :
1514 token : ${{ secrets.GH_PAT }}
1615 release-type : node
16+ - uses : actions/checkout@v4
17+ if : ${{ steps.release.outputs.release_created }}
18+ - uses : actions/setup-node@v4
19+ with :
20+ node-version : " 20.6.1"
21+ registry-url : ' https://registry.npmjs.org'
22+ if : ${{ steps.release.outputs.release_created }}
23+ - run : npm ci
24+ if : ${{ steps.release.outputs.release_created }}
25+ - run : npm publish
26+ env :
27+ NODE_AUTH_TOKEN : ${{secrets.NPM_TOKEN}}
28+ if : ${{ steps.release.outputs.release_created }}
You can’t perform that action at this time.
0 commit comments