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#automating-publication-to-npm
1+ # https://github.com/googleapis/release-please-action
2+ # https://docs.npmjs.com/trusted-publishers
23on :
34 push :
45 branches :
56 - main
7+
8+ permissions :
9+ id-token : write
10+ contents : write
11+ issues : write
12+ pull-requests : write
13+
614name : release-please
715jobs :
816 release-please :
917 runs-on : ubuntu-latest
1018 steps :
11- - uses : google-github-actions /release-please-action@v4
19+ - uses : googleapis /release-please-action@v4
1220 id : release
1321 with :
22+ # > By default, Release Please uses the built-in GITHUB_TOKEN secret.
23+ # > However, all resources created by release-please (release tag or release pull request) will not trigger future GitHub actions workflows,
24+ # > and workflows normally triggered by release.created events will also not run.
25+ # https://github.com/googleapis/release-please-action?tab=readme-ov-file#other-actions-on-release-please-prs
1426 token : ${{ secrets.GH_PAT }}
1527 release-type : node
28+
1629 - uses : actions/checkout@v4
1730 if : ${{ steps.release.outputs.release_created }}
31+
1832 - uses : actions/setup-node@v4
1933 with :
20- node-version : " 20.6.1 "
34+ node-version : " 24.9.0 "
2135 registry-url : ' https://registry.npmjs.org'
2236 if : ${{ steps.release.outputs.release_created }}
37+
38+ - run : npm install -g npm@latest
39+ if : ${{ steps.release.outputs.release_created }}
40+
2341 - run : npm ci
2442 if : ${{ steps.release.outputs.release_created }}
43+
2544 - run : npm publish
26- env :
27- NODE_AUTH_TOKEN : ${{secrets.NPM_TOKEN}}
2845 if : ${{ steps.release.outputs.release_created }}
46+
You can’t perform that action at this time.
0 commit comments