Skip to content

Commit d67518d

Browse files
authored
chore: updates workflow for trusted publishing (#51)
NPM package publishing will be migrated to use Trusted Publishing (via OIDC). Requires dfinity/ci-tools#62 to be merged first.
1 parent 369f780 commit d67518d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,12 @@ jobs:
1515
environment:
1616
name: npm
1717
url: https://www.npmjs.com/package/@dfinity/cbor
18+
permissions:
19+
contents: write
20+
id-token: write
1821
steps:
1922
- name: Checkout Code
20-
uses: actions/checkout@v4
23+
uses: actions/checkout@v5
2124

2225
- name: Setup Python
2326
uses: dfinity/ci-tools/actions/setup-python@main
@@ -42,7 +45,6 @@ jobs:
4245
id: publish
4346
uses: dfinity/ci-tools/actions/npm-publish@main
4447
with:
45-
token: ${{ secrets.NPM_ACCESS_TOKEN }}
4648
is_beta: ${{ steps.is_beta.outputs.is_beta_tag }}
4749

4850
- name: Create Github release

0 commit comments

Comments
 (0)