@@ -2,6 +2,9 @@ name: Test & Maybe Release
22
33on : [push, pull_request]
44
5+ permissions :
6+ contents : read
7+
58jobs :
69 test :
710 strategy :
@@ -12,11 +15,11 @@ jobs:
1215 runs-on : ${{ matrix.os }}
1316 steps :
1417 - name : Checkout Repository
15- uses : actions/checkout@v3
18+ uses : actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
1619 with :
1720 fetch-depth : 0
1821 - name : Use Node.js ${{ matrix.node }}
19- uses : actions/setup-node@v3.6 .0
22+ uses : actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1 .0
2023 with :
2124 node-version : ${{ matrix.node }}
2225 - name : Install Dependencies
@@ -30,18 +33,23 @@ jobs:
3033 name : Release
3134 permissions :
3235 contents : write
36+ id-token : write
37+ issues : write
38+ pull-requests : write
3339 needs : test
3440 runs-on : ubuntu-latest
3541 if : github.event_name == 'push' && github.ref == 'refs/heads/main'
3642 steps :
3743 - name : Checkout
38- uses : actions/checkout@v3
44+ uses : actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
3945 with :
4046 fetch-depth : 0
4147 - name : Setup Node.js
42- uses : actions/setup-node@v3.6 .0
48+ uses : actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1 .0
4349 with :
4450 node-version : lts/*
51+ check-latest : true
52+ registry-url : ' https://registry.npmjs.org'
4553 - name : Install dependencies
4654 run : |
4755 npm install --no-progress --no-package-lock --no-save
5159 - name : Release
5260 env :
5361 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
54- NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
62+ NPM_CONFIG_PROVENANCE : true
5563 run : npx semantic-release
5664
0 commit comments