mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-17 07:12:30 +08:00
feat(ci): deploy to npm on tag
This commit is contained in:
parent
7d4f8530a7
commit
2774b78b9f
26
.github/workflows/release.yml
vendored
Normal file
26
.github/workflows/release.yml
vendored
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
name: Release
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- 'v*'
|
||||||
|
jobs:
|
||||||
|
publish-package:
|
||||||
|
name: Publish package
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- name: Set up Node
|
||||||
|
uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: 22
|
||||||
|
registry-url: 'https://registry.npmjs.org'
|
||||||
|
always-auth: true
|
||||||
|
- run: |
|
||||||
|
corepack enable &&
|
||||||
|
corepack install
|
||||||
|
- name: Install dependencies
|
||||||
|
run: yarn install --frozen-lockfile
|
||||||
|
- name: Publish package
|
||||||
|
run: yarn publish --access public
|
||||||
|
env:
|
||||||
|
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
|
@ -89,5 +89,6 @@
|
|||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/ThomasAitken/ckeditor5-footnotes/issues"
|
"url": "https://github.com/ThomasAitken/ckeditor5-footnotes/issues"
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/ThomasAitken/ckeditor5-footnotes#readme"
|
"homepage": "https://github.com/ThomasAitken/ckeditor5-footnotes#readme",
|
||||||
|
"packageManager": "yarn@1.22.22"
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user