Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
chore(build): deploy to npm
Elian Doran9a8ee6a7140d
diff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex f6ffd24776..a2c61a1cc8 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -1,21 +1,26 @@name: Releaseon:push:- tags: v*+ tags:+ - 'v*'jobs:- publish-github-registry:+ publish-package:+ name: Publish packageruns-on: ubuntu-lateststeps:- uses: actions/checkout@v4- - name: Set up node & dependencies+ - name: Set up Nodeuses: actions/setup-node@v4with:- node-version: 20- registry-url: https://npm.pkg.github.com/- cache: "npm"- - run: yarn install- - run: yarn publish+ 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 publicenv:- NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}- permissions:- packages: write+ NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}diff --git a/package.json b/package.jsonindex 4d4cca6496..832a0139a3 100644--- a/package.json+++ b/package.json@@ -12,9 +12,6 @@"katex"],"main": "src/index.ts",- "publishConfig": {- "registry": "https://npm.pkg.github.com"- },"dependencies": {"ckeditor5": "41.4.2"},@@ -104,5 +101,6 @@"hooks": {"pre-commit": "lint-staged"}- }+ },+ "packageManager": "[email protected]"}