Skip to content

Commit 4aa6f2b

Browse files
committed
Add --no-git-checks to CI publish.
1 parent b4b3628 commit 4aa6f2b

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
run: pnpm run ci
4444

4545
- name: Publish to npm if needed
46-
if: ${{ github.ref }} == "refs/heads/main"
46+
if: github.ref == 'refs/heads/main'
4747
env:
4848
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
49-
run: pnpm publish -r --dry-run
49+
run: pnpm publish -r --no-git-checks --dry-run

.github/workflows/version.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,7 @@ jobs:
3939
delete-branch: true
4040
title: "Update package versions"
4141
body: "Merging this PR will publish packages to npm at the new version."
42+
- name: Push tags
43+
run: |
44+
git switch gh-action-version
45+
git push origin --tags

0 commit comments

Comments
 (0)