Skip to content

Commit 871f620

Browse files
committed
feat(npm): use granular token
1 parent ce83e46 commit 871f620

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/release.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,22 @@ on:
66
- main
77

88
concurrency: ${{ github.workflow }}-${{ github.ref }}
9+
910
jobs:
1011
release:
1112
name: Release
1213
runs-on: ubuntu-latest
1314
permissions: write-all
1415
steps:
16+
- uses: scaleway/action-scw-secret@v0
17+
- name: Pull Secrets
18+
with:
19+
secret-names: |
20+
NPM_TOKEN,npm/token_scaleway_lib
21+
access-key: ${{ vars.SCW_ACCESS_KEY }}
22+
secret-key: ${{ secrets.SCW_SECRET_KEY }}
23+
default-project-id: ${{ vars.SCW_DEFAULT_PROJECT_ID }}
24+
default-organization-id: ${{ vars.SCW_DEFAULT_ORGANIZATION_ID }}
1525
- uses: actions/[email protected]
1626
- name: Git Identity
1727
run: |
@@ -36,5 +46,5 @@ jobs:
3646
publish: pnpm release
3747
env:
3848
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
49+
NPM_TOKEN: ${{ env.NPM_TOKEN }}
4050
NPM_CONFIG_PROVENANCE: true

0 commit comments

Comments
 (0)