Skip to content

Commit 6ddb336

Browse files
authored
Merge pull request #158 from Netatwork-de/workflow-update
Use npm trusted publishing
2 parents e49f4a3 + d68326b commit 6ddb336

File tree

1 file changed

+10
-17
lines changed

1 file changed

+10
-17
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7,30 +7,23 @@ on:
77
pull_request:
88
branches: [ master ]
99

10+
permissions:
11+
id-token: write
12+
contents: read
13+
1014
jobs:
1115
build:
1216
runs-on: ubuntu-latest
1317

1418
steps:
15-
- uses: actions/checkout@v2
16-
17-
- name: install
18-
run: npm ci
19-
20-
- uses: actions/setup-node@v1
19+
- uses: actions/checkout@v5
20+
- uses: actions/setup-node@v6
2121
with:
22-
node-version: '16.x'
22+
node-version: 24
2323
registry-url: https://registry.npmjs.org/
24-
scope: netatwork
25-
26-
- name: build
27-
run: npm run build
2824

29-
# Note that this does not takes care of the versioning.
30-
# Changelog generation, version tagging needs to be done, prior to this.
25+
- run: npm ci
26+
- run: npm run build
3127

32-
- name: publish to npm
33-
run: npm publish --access public --@netatwork:registry=https://registry.npmjs.org/
28+
- run: npm publish
3429
if: startsWith(github.ref, 'refs/tags/v')
35-
env:
36-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)