From 3a33139a780b12b9e9313e0fb640dec233974b0e Mon Sep 17 00:00:00 2001 From: Valentin Laurin Date: Tue, 16 Jun 2026 12:09:40 +0100 Subject: [PATCH] Set up trusted publishing for NPM --- .github/workflows/ci.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b061837..721e6fc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,6 +9,7 @@ on: schedule: - cron: '0 0 * * *' permissions: + id-token: write # Required for publishing to NPM (Trusted Publishers) contents: read env: NODE_VERSION: 26 @@ -85,9 +86,9 @@ jobs: uses: actions/setup-node@v6 with: node-version: ${{ env.NODE_VERSION }} - cache: 'npm' registry-url: https://registry.npmjs.org scope: '@quickcase' + package-manager-cache: false - name: Install deps run: npm ci @@ -97,5 +98,3 @@ jobs: - name: Publish run: npm publish - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}