Skip to content

Commit 073059a

Browse files
committed
chore: support npm trust publisher
1 parent faa89f9 commit 073059a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/release.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,17 +203,27 @@ jobs:
203203
with:
204204
path: packages/vrender
205205

206+
- name: Disable git hooks for CI (release/hotfix)
207+
if: startsWith(github.ref_name, 'release/') || startsWith(github.ref_name, 'hotfix/')
208+
run: git config core.hooksPath /dev/null
206209
- name: Commit & Push changes (release/hotfix)
207210
if: startsWith(github.ref_name, 'release/') || startsWith(github.ref_name, 'hotfix/')
208211
uses: actions-js/push@master
212+
env:
213+
HUSKY: 0
209214
with:
210215
github_token: ${{ secrets.GITHUB_TOKEN }}
211216
message: 'build: prelease version ${{ steps.package-version.outputs.current_version }}'
212217
branch: ${{ github.ref_name }}
213218

219+
- name: Disable git hooks for CI (pre-release)
220+
if: startsWith(github.ref_name, 'pre-release/')
221+
run: git config core.hooksPath /dev/null
214222
- name: Commit & Push changes (pre-release)
215223
if: startsWith(github.ref_name, 'pre-release/')
216224
uses: actions-js/push@master
225+
env:
226+
HUSKY: 0
217227
with:
218228
github_token: ${{ secrets.GITHUB_TOKEN }}
219229
message: 'build: prelease version ${{ steps.package-version-pre.outputs.current_version }}'

0 commit comments

Comments
 (0)