Skip to content

Commit 5bbaefb

Browse files
authored
sync
Added permission for id-token and removed npm auth commands.
1 parent bc2b8b3 commit 5bbaefb

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

.github/workflows/build.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99
concurrency: ${{ github.workflow }}-${{ github.ref }}
1010

1111
permissions:
12+
id-token: write
1213
contents: write
1314
packages: write
1415

@@ -23,12 +24,6 @@ jobs:
2324
with:
2425
bun-version: latest
2526

26-
- run: |
27-
npm config set //registry.npmjs.org/:_authToken $NODE_AUTH_TOKEN
28-
npm whoami
29-
env:
30-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
31-
3227
- run: git fetch --force --tags
3328

3429
- uses: actions/setup-go@v5
@@ -48,3 +43,5 @@ jobs:
4843
distribution: goreleaser
4944
version: latest
5045
args: build --snapshot --clean
46+
env:
47+
NPM_CONFIG_PROVENANCE: false

0 commit comments

Comments
 (0)