chore: 调试工作流推包
This commit is contained in:
@@ -10,19 +10,7 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
runs-on: docker # 匹配你 runner 的标签
|
runs-on: docker # 匹配你 runner 的标签
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Debug token length
|
||||||
uses: actions/checkout@v4
|
env:
|
||||||
|
TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||||
- name: Install dependencies
|
run: echo "Token length: ${#TOKEN}"
|
||||||
run: npm i # 或 npm install
|
|
||||||
|
|
||||||
- name: Run build
|
|
||||||
run: npm run build
|
|
||||||
|
|
||||||
- name: Setup npm for Verdaccio
|
|
||||||
run: |
|
|
||||||
npm config set registry http://verdaccio:4873/
|
|
||||||
npm config set //verdaccio:4873/:_authToken ${{ secrets.NPM_TOKEN }}
|
|
||||||
|
|
||||||
- name: Publish package
|
|
||||||
run: npm publish
|
|
||||||
|
|||||||
Reference in New Issue
Block a user