From 0a2a0361cb365dcd777a80d4587b4f9497c60a78 Mon Sep 17 00:00:00 2001 From: Philip Harrison Date: Wed, 15 Feb 2023 20:22:40 +0000 Subject: [PATCH] Update to use latest npm CLI release (#94) The new version has provenance support built in. https://github.com/npm/cli/pull/6163 --- .github/workflows/create-release.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml index c637ec9..236e6e9 100644 --- a/.github/workflows/create-release.yml +++ b/.github/workflows/create-release.yml @@ -20,10 +20,12 @@ jobs: node-version: 18 registry-url: 'https://registry.npmjs.org' cache: npm + - name: Install latest npm version + run: npm install -g npm@latest - name: Install dependencies and build run: npm ci - name: Publish package - run: npm exec npm@npm/cli#provenance -- publish --provenance + run: npm publish --provenance env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}