mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-25 05:55:21 +08:00
feat(ci): deploy package using GitHub Actions
This commit is contained in:
parent
5e0fb0e4af
commit
b1be69d686
21
.github/workflows/release-package.yml
vendored
Normal file
21
.github/workflows/release-package.yml
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
name: Release
|
||||
on:
|
||||
push:
|
||||
|
||||
jobs:
|
||||
publish-github-registry:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 22
|
||||
registry-url: https://npm.pkg.github.com/
|
||||
- run: yarn install
|
||||
- run: yarn build
|
||||
- run: yarn publish
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
||||
permissions:
|
||||
contents: read
|
||||
packages: write
|
Loading…
x
Reference in New Issue
Block a user