Skip to content

Commit 9047377

Browse files
committed
chore: add provenance in npm publish command
1 parent d34cc37 commit 9047377

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

.github/workflows/release.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,17 @@ jobs:
3333
- uses: actions/checkout@v4
3434
with:
3535
fetch-depth: 0
36+
3637
- uses: actions/setup-node@v4
3738
with:
3839
node-version: "20.x"
3940
registry-url: "https://registry.npmjs.org"
41+
4042
- name: Build NPM Package
41-
run: |
42-
bash ./scripts/create-npm-package.sh
43+
run: bash ./scripts/create-npm-package.sh
44+
4345
- name: Publish npm packages
4446
working-directory: dist/npm/squarecloud
47+
run: npm publish --provenance --access public
4548
env:
4649
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
47-
run: |
48-
npm publish --access public --non-interactive

0 commit comments

Comments
 (0)