Skip to content

Commit 910510f

Browse files
authored
Merge pull request #1242 from finos/provenence-statements
chore: generate provenance statement when publishing to npm
2 parents b198b31 + 96b5c78 commit 910510f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/npm.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
types: [published]
55
permissions:
66
contents: read
7+
id-token: write
78

89
jobs:
910
build:
@@ -30,10 +31,10 @@ jobs:
3031
VERSION=$(node -p "require('./package.json').version")
3132
if [[ "$VERSION" == *"-"* ]]; then
3233
echo "Publishing pre-release: $VERSION"
33-
npm publish --access=public --tag rc
34+
npm publish --provenance --access=public --tag rc
3435
else
3536
echo "Publishing stable release: $VERSION"
36-
npm publish --access=public
37+
npm publish --provenance --access=public
3738
fi
3839
env:
3940
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)