This commit is contained in:
@@ -10,16 +10,17 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
runs-on: docker # 匹配你 runner 的标签
|
runs-on: docker # 匹配你 runner 的标签
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Setup npm for Verdaccio
|
- name: Setup npm for Verdaccio
|
||||||
run: |
|
run: |
|
||||||
npm config set registry http://verdaccio:4873/
|
npm config set registry http://verdaccio:4873/
|
||||||
npm config set //verdaccio:4873/:_authToken ${{ secrets.NPM_TOKEN }}
|
npm config set //verdaccio:4873/:_authToken ${{ secrets.NPM_TOKEN }}
|
||||||
|
|
||||||
|
- name: Setup npm cache
|
||||||
|
run: |
|
||||||
|
npm config set cache /cache/npm
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm i --registry http://verdaccio:4873/ # 或 npm install
|
run: npm i --registry http://verdaccio:4873/
|
||||||
|
|
||||||
- name: Run build
|
- name: Run build
|
||||||
run: npm run build
|
run: npm run build
|
||||||
|
|||||||
Reference in New Issue
Block a user