Skip to content

Build your personal knowledge base with Trilium Notes

chore(ci): deploy to npm

Elian Dorane25c16b2303a
diff --git a/.github/workflows/release-package.yml b/.github/workflows/release-package.yml
index 7fe3e7d81d..1cd3b6760a 100644
--- a/.github/workflows/release-package.yml
+++ b/.github/workflows/release-package.yml
@@ -1,7 +1,6 @@
name: Release
on:
push:
-
jobs:
publish-github-registry:
runs-on: ubuntu-latest
@@ -11,11 +10,11 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 22
- registry-url: https://npm.pkg.github.com/
+ registry-url: 'https://registry.npmjs.org'
- run: yarn install
- run: yarn push
env:
- NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
+ NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
permissions:
contents: read
packages: write
\ No newline at end of file
diff --git a/package.json b/package.json
index c48a844c20..3ae9e48f5a 100644
--- a/package.json
+++ b/package.json
@@ -14,7 +14,7 @@
"build:watch": "npx tsc -w",
"build:dev": "npx tsc && yarn copy-assets",
"build:prod": "yarn clean && cross-env NODE_ENV=production tsc -p ./tsconfig.production.json",
- "push": "yarn test && yarn build:prod && yarn publish",
+ "push": "yarn test && yarn build:prod && yarn publish --access public",
"run:examples:file": "node ./dist/examples/express-file-server/index.js"
},
"bugs": {