Skip to content

Commit 060014e

Browse files
ci: migrate to npm trusted publisher (#291)
1 parent dc112b1 commit 060014e

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

.github/workflows/publish.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,20 @@
1+
# ⚠️ THIS WORKFLOW IS THE TRUSTED PUBLISHER CONFIGURED ON NPMJS.COM, DO NOT RENAME OR DELETE THIS FILE ⚠️
12
name: Publish NPM Package
23

34
on:
45
push:
5-
tags:
6-
- 'v*'
6+
tags:
7+
- 'v*'
8+
9+
permissions:
10+
id-token: write # Required for OIDC
11+
packages: write
12+
contents: read
713

814
jobs:
915
build-and-test:
1016
uses: ./.github/workflows/main.yml
1117

1218
publish:
1319
needs: build-and-test
14-
uses: iExecBlockchainComputing/github-actions-workflows/.github/workflows/[email protected]
15-
secrets:
16-
npm-token: ${{ secrets.NPM_TOKEN }}
20+
uses: iExecBlockchainComputing/github-actions-workflows/.github/workflows/[email protected]

0 commit comments

Comments
 (0)