From 51e65c91ebfb1c70e1e7ecc024921268b54c870d Mon Sep 17 00:00:00 2001 From: Kim T Date: Tue, 2 Dec 2025 20:48:45 -0800 Subject: [PATCH] Trusted publishing for npm packages --- .github/workflows/release.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 60108e9..d9a8454 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,9 +19,12 @@ jobs: - name: Setup NodeJs uses: actions/setup-node@v4 with: - node-version: '20.x' + node-version: '20' registry-url: 'https://registry.npmjs.org' + - name: Update npm + run: npm install -g npm@latest + - name: Install dependencies run: npm ci @@ -29,6 +32,4 @@ jobs: run: npm run build - name: Publish - run: npm publish --provenance --access public - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + run: npm publish