mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-09-02 21:42:15 +08:00
chore(build): deploy to npm
This commit is contained in:
parent
61e7414df6
commit
9a8ee6a714
27
.github/workflows/release.yml
vendored
27
.github/workflows/release.yml
vendored
@ -1,21 +1,26 @@
|
|||||||
name: Release
|
name: Release
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags: v*
|
tags:
|
||||||
|
- 'v*'
|
||||||
jobs:
|
jobs:
|
||||||
publish-github-registry:
|
publish-package:
|
||||||
|
name: Publish package
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Set up node & dependencies
|
- name: Set up Node
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: 20
|
node-version: 22
|
||||||
registry-url: https://npm.pkg.github.com/
|
registry-url: 'https://registry.npmjs.org'
|
||||||
cache: "npm"
|
always-auth: true
|
||||||
- run: yarn install
|
- run: |
|
||||||
- run: yarn publish
|
corepack enable &&
|
||||||
|
corepack install
|
||||||
|
- name: Install dependencies
|
||||||
|
run: yarn install --frozen-lockfile
|
||||||
|
- name: Publish package
|
||||||
|
run: yarn publish --access public
|
||||||
env:
|
env:
|
||||||
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
|
||||||
permissions:
|
|
||||||
packages: write
|
|
||||||
|
@ -12,9 +12,6 @@
|
|||||||
"katex"
|
"katex"
|
||||||
],
|
],
|
||||||
"main": "src/index.ts",
|
"main": "src/index.ts",
|
||||||
"publishConfig": {
|
|
||||||
"registry": "https://npm.pkg.github.com"
|
|
||||||
},
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"ckeditor5": "41.4.2"
|
"ckeditor5": "41.4.2"
|
||||||
},
|
},
|
||||||
@ -104,5 +101,6 @@
|
|||||||
"hooks": {
|
"hooks": {
|
||||||
"pre-commit": "lint-staged"
|
"pre-commit": "lint-staged"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"packageManager": "yarn@1.22.22"
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user