Switches from Github to NPM publishing (#249)

This commit is contained in:
Chris Anderson 2023-08-21 19:49:54 -07:00 committed by GitHub
parent e7957ac718
commit 0915b36a04
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 5 deletions

View file

@ -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}}

View file

@ -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"
]
}