Skip to content

Commit 240f2d4

Browse files
committed
ci(npm): use trusted publishing
1 parent 88ffdc9 commit 240f2d4

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/tags.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ on:
33
tags:
44
- '*'
55

6+
permissions:
7+
id-token: write # Required for OIDC
8+
contents: read
9+
610
jobs:
711
angular:
812
uses: ./.github/workflows/angular.yml
@@ -15,7 +19,7 @@ jobs:
1519
with:
1620
name: lib-build
1721
path: dist/ngx-openlayers/
18-
- uses: actions/setup-node@v3
22+
- uses: actions/setup-node@v4
1923
with:
2024
node-version: ${{env.NODE_JS_VERSION}}
2125
cache: 'yarn'
@@ -33,8 +37,6 @@ jobs:
3337
fi
3438
- run: cp projects/ngx-openlayers/CHANGELOG.md dist/ngx-openlayers/CHANGELOG.md
3539
- run: cd dist/ngx-openlayers/ && npm publish --tag ${{ steps.check-tag.outputs.tag }} --access public
36-
env:
37-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
3840
needs:
3941
- angular
4042

0 commit comments

Comments
 (0)