mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-09-10 02:58:12 +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
|
||||
on:
|
||||
push:
|
||||
|
||||
jobs:
|
||||
publish-github-registry:
|
||||
runs-on: ubuntu-latest
|
||||
@ -11,11 +10,11 @@ jobs:
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 22
|
||||
registry-url: https://npm.pkg.github.com/
|
||||
registry-url: 'https://registry.npmjs.org'
|
||||
- run: yarn install
|
||||
- run: yarn push
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
||||
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
|
||||
permissions:
|
||||
contents: read
|
||||
packages: write
|
@ -14,7 +14,7 @@
|
||||
"build:watch": "npx tsc -w",
|
||||
"build:dev": "npx tsc && yarn copy-assets",
|
||||
"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"
|
||||
},
|
||||
"bugs": {
|
||||
|
Loading…
x
Reference in New Issue
Block a user