WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit bdfe93d

Browse files
authored
Add permissions and update npm publish command
1 parent 9b9b9e9 commit bdfe93d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/bump-version.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
# Run once a month at midnight on the first day
77
- cron: "0 0 1 * *"
88

9+
permissions:
10+
contents: read
11+
id-token: write
12+
913
jobs:
1014
compare-and-bump:
1115
runs-on: ubuntu-latest
@@ -54,7 +58,7 @@ jobs:
5458
5559
# Get current version and bump patch
5660
npm version patch -m "Bump version to %s"
57-
npm publish
61+
npm publish --provenance
5862
5963
# Push changes back to the repository
6064
git push

0 commit comments

Comments
 (0)