File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,31 +2,33 @@ name: 'Release Please'
22
33on :
44 push :
5- branches :
6- - main
5+ branches : ['main']
76
87permissions :
8+ # This job has the highest privileges, so always pin actions to a specific commit hash.
9+ # Ensure the referenced commit hash is verified and free from known vulnerabilities.
10+ id-token : write # Required for OIDC (npm release)
911 contents : write
1012 pull-requests : write
1113
1214jobs :
1315 release-please :
1416 runs-on : ubuntu-latest
1517 steps :
16- - uses : googleapis/release-please-action@v4
18+ - uses : googleapis/release-please-action@16a9c90856f42705d54a6fda1823352bdc62cf38 # v4.4.0
1719 id : release
1820 with :
1921 # NOTE: GITHUB_TOKEN doesn't run checks on Release PR
2022 token : ${{ secrets.GITHUB_TOKEN }}
2123
2224 # The logic below handles the npm publication:
23- - uses : actions/checkout@v4
25+ - uses : actions/checkout@v6
2426 # these if statements ensure that a publication only occurs when
2527 # a new release is created:
2628 if : ${{ steps.release.outputs.release_created }}
2729
2830 - name : Setup node
29- uses : actions/setup-node@v4
31+ uses : actions/setup-node@v6
3032 with :
3133 node-version : 22
3234 registry-url : ' https://registry.npmjs.org'
4244
4345 - name : Publish to NPM
4446 run : npm publish --access public
45- env :
46- NODE_AUTH_TOKEN : ${{secrets.NPM_TOKEN}}
4747 if : ${{ steps.release.outputs.release_created }}
You can’t perform that action at this time.
0 commit comments