mirror of
https://fast.feibisi.com/https://github.com/parcelvoy/platform.git
synced 2025-08-29 11:56:04 +08:00
Switches from Github to NPM publishing (#249)
This commit is contained in:
parent
e7957ac718
commit
0915b36a04
2 changed files with 14 additions and 5 deletions
12
.github/workflows/publish.yml
vendored
12
.github/workflows/publish.yml
vendored
|
@ -19,9 +19,15 @@ jobs:
|
|||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18.x
|
||||
registry-url: https://npm.pkg.github.com/
|
||||
registry-url: https://registry.npmjs.org
|
||||
- name: Cache NPM
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: ~/.npm
|
||||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-node-
|
||||
- run: npm ci
|
||||
- run: echo "registry=https://npm.pkg.github.com/@parcelvoy" >> .npmrc
|
||||
- run: npm run package:publish --tag=$(echo ${GITHUB_REF_NAME:1})
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
||||
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
|
Loading…
Add table
Add a link
Reference in a new issue