mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-09-10 20:51:34 +08:00
chore(ci): deploy to npm
This commit is contained in:
parent
91800df82c
commit
e25c16b230
5
.github/workflows/release-package.yml
vendored
5
.github/workflows/release-package.yml
vendored
@ -1,7 +1,6 @@
|
|||||||
name: Release
|
name: Release
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
publish-github-registry:
|
publish-github-registry:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@ -11,11 +10,11 @@ jobs:
|
|||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: 22
|
node-version: 22
|
||||||
registry-url: https://npm.pkg.github.com/
|
registry-url: 'https://registry.npmjs.org'
|
||||||
- run: yarn install
|
- run: yarn install
|
||||||
- run: yarn push
|
- run: yarn push
|
||||||
env:
|
env:
|
||||||
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
packages: write
|
packages: write
|
@ -14,7 +14,7 @@
|
|||||||
"build:watch": "npx tsc -w",
|
"build:watch": "npx tsc -w",
|
||||||
"build:dev": "npx tsc && yarn copy-assets",
|
"build:dev": "npx tsc && yarn copy-assets",
|
||||||
"build:prod": "yarn clean && cross-env NODE_ENV=production tsc -p ./tsconfig.production.json",
|
"build:prod": "yarn clean && cross-env NODE_ENV=production tsc -p ./tsconfig.production.json",
|
||||||
"push": "yarn test && yarn build:prod && yarn publish",
|
"push": "yarn test && yarn build:prod && yarn publish --access public",
|
||||||
"run:examples:file": "node ./dist/examples/express-file-server/index.js"
|
"run:examples:file": "node ./dist/examples/express-file-server/index.js"
|
||||||
},
|
},
|
||||||
"bugs": {
|
"bugs": {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user