Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

ci: use PACKAGES_TOKEN for packages auth

thecodrra4683aa4c20d
diff --git a/apps/web/.github/workflows/deploy.yml b/apps/web/.github/workflows/deploy.yml
index 8533fa973..1e040739c 100644
--- a/apps/web/.github/workflows/deploy.yml
+++ b/apps/web/.github/workflows/deploy.yml
@@ -27,7 +27,7 @@ jobs:
persist-credentials: false
- name: Setup npmrc
- run: echo "//npm.pkg.github.com/:_authToken=${{secrets.PERSONAL_GH_TOKEN}}" > .npmrc
+ run: echo "//npm.pkg.github.com/:_authToken=${{secrets.PACKAGES_TOKEN}}" > .npmrc
- name: Use Node.js 16.x
uses: actions/[email protected]
diff --git a/apps/web/.github/workflows/release.yml b/apps/web/.github/workflows/release.yml
index 4c373ec01..f47cc243c 100644
--- a/apps/web/.github/workflows/release.yml
+++ b/apps/web/.github/workflows/release.yml
@@ -1,5 +1,9 @@
name: Build/release
+permissions:
+ packages: read
+ contents: read
+
on: workflow_dispatch
jobs:
@@ -12,6 +16,9 @@ jobs:
with:
persist-credentials: false
+ - name: Setup npmrc
+ run: echo "//npm.pkg.github.com/:_authToken=${{secrets.PACKAGES_TOKEN}}" > .npmrc
+
- name: Use Node.js 16.x
uses: actions/[email protected]
with: