Skip to content

Build your personal knowledge base with Trilium Notes

feat(ci): deploy package using GitHub Actions

Elian Doranb1be69d68680
diff --git a/.github/workflows/release-package.yml b/.github/workflows/release-package.yml
new file mode 100644
index 0000000000..17ca8837e3
--- /dev/null
+++ b/.github/workflows/release-package.yml
@@ -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
\ No newline at end of file