From 114d0f41752bbbc20030ced095ca9bb196cba375 Mon Sep 17 00:00:00 2001 From: Silvano Cerza Date: Thu, 13 Nov 2025 18:20:56 +0100 Subject: [PATCH 1/2] Update release workflow to support new NPM trusted publishing --- .github/workflows/cd_npm.yml | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cd_npm.yml b/.github/workflows/cd_npm.yml index b47ab90..65ddd6a 100644 --- a/.github/workflows/cd_npm.yml +++ b/.github/workflows/cd_npm.yml @@ -5,29 +5,42 @@ on: tags: - "v*" +permissions: + id-token: write # Required for OIDC + contents: read + jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: node-version: 16 + - run: npm ci + - run: npm test env: IPINFO_TOKEN: ${{secrets.IPINFO_TOKEN}} + publish: needs: build runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: node-version: 16 registry-url: https://registry.npmjs.org/ + + - name: Update npm + run: npm install -g npm@latest + - run: npm ci + - run: npm run build + - run: npm publish - env: - NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} From 8e19feb6d43484767336046348881e6b941a4117 Mon Sep 17 00:00:00 2001 From: Silvano Cerza Date: Thu, 13 Nov 2025 18:27:32 +0100 Subject: [PATCH 2/2] Update node version used in release workflow --- .github/workflows/cd_npm.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cd_npm.yml b/.github/workflows/cd_npm.yml index 65ddd6a..2b27ad2 100644 --- a/.github/workflows/cd_npm.yml +++ b/.github/workflows/cd_npm.yml @@ -17,7 +17,7 @@ jobs: - uses: actions/setup-node@v4 with: - node-version: 16 + node-version: 20 - run: npm ci @@ -33,7 +33,7 @@ jobs: - uses: actions/setup-node@v4 with: - node-version: 16 + node-version: 20 registry-url: https://registry.npmjs.org/ - name: Update npm