mirror of
https://fast.feibisi.com/https://github.com/parcelvoy/platform.git
synced 2025-08-28 11:46:02 +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}}
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "@parcelvoy/platform",
|
||||
"version": "0.1.0",
|
||||
"repository":"https://github.com/parcelvoy/platform",
|
||||
"repository": "https://github.com/parcelvoy/platform",
|
||||
"main": "build/index.js",
|
||||
"types": "build/index.d.ts",
|
||||
"dependencies": {
|
||||
|
@ -88,5 +88,8 @@
|
|||
"ts-node": "^10.8.2",
|
||||
"typescript": "^4.9.3"
|
||||
},
|
||||
"files": [ "/build", "/db" ]
|
||||
"files": [
|
||||
"/build",
|
||||
"/db"
|
||||
]
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue