Skip to content

Commit 414734d

Browse files
update workflow
1 parent 88cf5a1 commit 414734d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/npm-publish.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,13 @@ jobs:
3737
git config user.email [email protected]
3838
- name: Update version
3939
run: |
40+
git fetch
41+
git checkout main
4042
VERSION=${GITHUB_REF#refs/tags/}
4143
npm version ${VERSION} --no-git-tag-version
4244
git add package.json
4345
git commit -m "Update version to ${VERSION}"
44-
git push
46+
git push origin main
4547
env:
4648
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
4749
- run: npm ci

0 commit comments

Comments
 (0)