-
Notifications
You must be signed in to change notification settings - Fork 285
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(release): add sigstore npm integration through --provenance
Primary Changes ---------------- 1. Added provenance config to the publish workflows. Fixes #2623 Signed-off-by: adrianbatuto <[email protected]>
- Loading branch information
1 parent
7579bc1
commit 96de0c7
Showing
2 changed files
with
7 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,6 +21,8 @@ concurrency: | |
jobs: | ||
build-and-publish-packages: | ||
runs-on: ubuntu-22.04 | ||
permissions: | ||
id-token: write | ||
steps: | ||
- name: Print Workflow inputs.GIT_TAG_TO_PUBLISH | ||
run: | | ||
|
@@ -58,6 +60,7 @@ jobs: | |
- name: lerna-publish-npm | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
NPM_CONFIG_PROVENANCE: true | ||
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "hyperledger-ghci" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,6 +19,8 @@ jobs: | |
|
||
build-and-publish-packages: | ||
runs-on: ubuntu-22.04 | ||
permissions: | ||
id-token: write | ||
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
|
@@ -28,7 +30,7 @@ jobs: | |
with: | ||
always-auth: true | ||
node-version: ${{ env.NODEJS_VERSION }} | ||
registry-url: 'https://registry.npmjs.org' | ||
registry-url: 'https://registry.npmjs.org/' | ||
- name: ./tools/ci.sh | ||
run: ./tools/ci.sh | ||
env: | ||
|
@@ -39,6 +41,7 @@ jobs: | |
- name: lerna-publish | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
NPM_CONFIG_PROVENANCE: true | ||
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "hyperledger-ghci" | ||
|