1 parent 11b4480 commit a6f5a79Copy full SHA for a6f5a79
1 file changed
.github/workflows/release-package.yml
@@ -72,6 +72,14 @@ jobs:
72
- uses: actions/checkout@v4
73
with:
74
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
83
- uses: actions/setup-node@v4
84
85
node-version: 20
@@ -110,5 +118,6 @@ jobs:
110
118
111
119
commit_message: 'chore: update version to ${{ steps.extract-version.outputs.version }}'
112
120
file_pattern: 'package.json package-lock.json'
113
-
121
+ branch: main
122
114
123
- run: npm publish --access public
0 commit comments