Skip to content

Commit bf75d5d

Browse files
author
高魏洪
committed
fix: test action
1 parent 03ce8b6 commit bf75d5d

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

‎.github/workflows/registry-publish.yaml‎

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
name: publish package to registry
22

33
on:
4-
release:
5-
types: [created]
4+
# release:
5+
# types: [created]
6+
pull_request:
7+
branches: [main, master]
8+
types: [opened, synchronize, reopened]
69

710
jobs:
811
deploy:
@@ -25,8 +28,8 @@ jobs:
2528
s registry login --token ${{ secrets.alibaba_registry_v3_publish_token }}
2629
- name: Configure NPM
2730
run: |
28-
npm config set registry https://registry.npmjs.org
31+
npm config set registry https://packages.aliyun.com/670e108663cd360abfe4be65/npm/npm-registry/
2932
npm config set '//packages.aliyun.com/670e108663cd360abfe4be65/npm/npm-registry/:_authToken' ${{secrets.NPM_TOKEN}}
3033
- name: release prod
3134
run: |
32-
npm i && npm run build && s registry publish
35+
npm i && npm run build

0 commit comments

Comments
 (0)