2626 uses : actions/setup-node@v3
2727 with :
2828 node-version : 16.x
29- cache : ' npm'
29+ cache : " npm"
3030 - name : Install dependencies
3131 run : npm clean-install
3232 - name : Lint commit
4747 uses : actions/setup-node@v3
4848 with :
4949 node-version : 16.x
50- cache : ' npm'
50+ cache : " npm"
5151 - name : Install dependencies
5252 run : npm clean-install
5353 - name : Lint code
6060 - codelint
6161 strategy :
6262 matrix :
63- node-version : [14.x, 16.x, 18.x, 20.x]
63+ node-version : [16.x, 18.x, 20.x]
6464 steps :
6565 - name : Checkout code
6666 uses : actions/checkout@v3
7070 uses : actions/setup-node@v3
7171 with :
7272 node-version : ${{ matrix.node-version }}
73- cache : ' npm'
73+ cache : " npm"
7474 - name : Install dependencies
7575 run : npm clean-install
7676 - name : Run tests
8989 uses : actions/setup-node@v3
9090 with :
9191 node-version : 20.x
92- cache : ' npm'
92+ cache : " npm"
9393 - name : Install deps
9494 run : npm ci
9595 - name : Test code
@@ -102,7 +102,7 @@ jobs:
102102 release :
103103 name : Release
104104 concurrency : release
105- if : ${{ github.repository_owner == 'dhensby' && github. event_name == 'push' && github.actor != 'dependabot[bot]' }}
105+ if : ${{ github.event_name == 'push' && github.actor != 'dependabot[bot]' }}
106106 runs-on : ubuntu-latest
107107 needs :
108108 - commitlint
@@ -113,6 +113,7 @@ jobs:
113113 issues : write # to be able to comment on released issues
114114 pull-requests : write # to be able to comment on released pull requests
115115 id-token : write # to enable use of OIDC for npm provenance
116+ packages : write # to be able to publish a GitHub package
116117 steps :
117118 - name : Checkout
118119 uses : actions/checkout@v3
@@ -122,14 +123,13 @@ jobs:
122123 uses : actions/setup-node@v3
123124 with :
124125 node-version : " lts/*"
125- cache : ' npm'
126+ cache : " npm"
126127 - name : Install dependencies
127128 run : npm clean-install
128129 - name : Verify the integrity of provenance attestations and registry signatures for installed dependencies
129130 run : npm audit signatures
130131 - name : Release
131132 env :
132- NPM_CONFIG_PROVENANCE : true
133133 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
134- NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
134+ NPM_TOKEN : ${{ secrets.GITHUB_TOKEN }}
135135 run : npx semantic-release
0 commit comments