Skip to content

Commit a6f5a79

Browse files
committed
Try To Fix Publish gpr
1 parent 11b4480 commit a6f5a79

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

‎.github/workflows/release-package.yml‎

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,14 @@ jobs:
7272
- uses: actions/checkout@v4
7373
with:
7474
token: ${{ secrets.GITHUB_TOKEN }}
75+
fetch-depth: 0
76+
77+
- name: Switch to main branch
78+
if: github.event_name == 'release'
79+
run: |
80+
git checkout main
81+
git pull origin main
82+
7583
- uses: actions/setup-node@v4
7684
with:
7785
node-version: 20
@@ -110,5 +118,6 @@ jobs:
110118
with:
111119
commit_message: 'chore: update version to ${{ steps.extract-version.outputs.version }}'
112120
file_pattern: 'package.json package-lock.json'
113-
121+
branch: main
122+
114123
- run: npm publish --access public

0 commit comments

Comments
 (0)