Skip to content

Build your personal knowledge base with Trilium Notes

feat(ci): deploy to npm on tag

Elian Doran2774b78b9fc9
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
new file mode 100644
index 0000000000..a2c61a1cc8
--- /dev/null
+++ b/.github/workflows/release.yml
@@ -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}}
diff --git a/package.json b/package.json
index 6b04574002..590f0fe818 100644
--- a/package.json
+++ b/package.json
@@ -89,5 +89,6 @@
"bugs": {
"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": "[email protected]"
}