There was an error while loading. Please reload this page.
2 parents 9377665 + 382588b commit 7b96795Copy full SHA for 7b96795
1 file changed
.github/workflows/npm-publish.yml
@@ -5,17 +5,24 @@ name: Npm.js deploy
5
6
on:
7
release:
8
- types: [created]
+ types: [created]
9
+
10
+permissions:
11
+ id-token: write
12
+ contents: read
13
14
jobs:
15
npm-publish:
16
runs-on: ubuntu-latest
17
steps:
18
- uses: actions/checkout@v6
- - uses: actions/setup-node@v3
19
+ - uses: actions/setup-node@v4
20
with:
- node-version: 20
21
+ node-version: 22
22
+ cache: 'npm'
23
registry-url: 'https://registry.npmjs.org'
24
+ - name: Update NPM
25
+ run: npm install -g npm@latest
26
- run: echo "VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV
27
- run: echo ${VERSION}
28
- run: npm ci
@@ -28,5 +35,3 @@ jobs:
35
working-directory: lib
29
36
- run: npm publish --tag ${NPM_TAG}
30
37
31
- env:
32
- NODE_AUTH_TOKEN: ${{secrets.INFRAGISTICS_NPM_TOKEN}}
0 commit comments