Skip to content

Commit 7f82dde

Browse files
authored
Update npm-publish workflow for version bumping
1 parent f480cba commit 7f82dde

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/npm-publish.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
name: Publish to npm
2-
32
on:
43
push:
54
branches:
65
- main
7-
86
jobs:
97
publish:
108
runs-on: ubuntu-latest
11-
129
steps:
1310
- name: Checkout repository
1411
uses: actions/checkout@v4
12+
with:
13+
fetch-depth: 0
14+
token: ${{ secrets.GITHUB_TOKEN }}
1515

1616
- name: Setup Node.js
1717
uses: actions/setup-node@v4
@@ -29,6 +29,7 @@ jobs:
2929
run: |
3030
git config --global user.name "github-actions[bot]"
3131
git config --global user.email "github-actions[bot]@users.noreply.github.com"
32+
git pull --rebase origin main
3233
npm version patch -m "chore: bump version to %s [skip ci]"
3334
git push origin main --follow-tags
3435

0 commit comments

Comments
 (0)