Skip to content

Commit bdfe93d

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

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.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)