Skip to content

Commit 8674770

Browse files
authored
[OGUI-1860] Migrate to use trusted publisher for npm deployments (#3264)
* Fix vulnerabilities * Update release action to use trusted-publishers
1 parent 5394853 commit 8674770

2 files changed

Lines changed: 96 additions & 43 deletions

File tree

.github/workflows/release.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ name: release
22
on:
33
release:
44
types: [created]
5+
6+
permissions:
7+
id-token: write # Needed for OIDC
8+
contents: write # Needed to attach assets to releases
9+
510
jobs:
611
deploy-npm-module:
712
runs-on: ubuntu-latest
@@ -41,8 +46,6 @@ jobs:
4146
echo "version=$VERSION" >> $GITHUB_OUTPUT
4247
echo "tag=$TAG" >> $GITHUB_OUTPUT
4348
- run: (cd $PROJECT; npm publish)
44-
env:
45-
NODE_AUTH_TOKEN: ${{ secrets.NPM_DEPLOY_TOKEN }}
4649
upload-asset:
4750
runs-on: ubuntu-latest
4851
timeout-minutes: 10

Framework/package-lock.json

Lines changed: 91 additions & 41 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)