Skip to content

Commit 9ad5af7

Browse files
also attempt to commit package
1 parent 9dd0f9b commit 9ad5af7

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/npm-publish.yaml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
publish-npm:
1010
runs-on: ubuntu-latest
1111
permissions:
12-
contents: read
12+
contents: write
1313
id-token: write # Allows GitHub to generate OIDC tokens required for provenance
1414

1515
steps:
@@ -41,3 +41,13 @@ jobs:
4141
- run: npm publish --provenance --access=public
4242
env:
4343
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
44+
45+
- name: Commit package version
46+
run: |
47+
git config --global user.name "boba-tan[bot]"
48+
git config --global user.email "boba-tan[bot]@users.noreply.github.com"
49+
50+
git add package.json package-lock.json
51+
52+
# The [skip ci] in the commit message prevents this commit from re-triggering workflows.
53+
git commit -m "${VERSION} has shipped ⛵🌟💖 [skip ci]"

0 commit comments

Comments
 (0)