From a664a440e6e8f9b0fc4fdd7c30c30dc9639e8985 Mon Sep 17 00:00:00 2001 From: Philip Harrison Date: Wed, 15 Feb 2023 17:31:35 +0000 Subject: [PATCH] Update to use latest npm CLI release The new version has provenance support built in. https://github.com/npm/cli/pull/6163 --- .github/workflows/publish.yml | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index a7e8b7c..20bebdd 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -18,29 +18,12 @@ jobs: node-version: 18 registry-url: https://registry.npmjs.org/ cache: npm + - run: npm install -g npm@latest - run: npm ci - run: npm test - run: npm version ${TAG_NAME} --git-tag-version=false env: TAG_NAME: ${{ github.event.release.tag_name }} - - # Provenance beta builds - # Remove when stable - - name: Clone npm - uses: actions/checkout@v3 - with: - repository: npm/cli - ref: provenance - path: npm - - name: Link npm - run: | - cd npm - node . link - cd .. - npm version - # Provenance beta builds - # Remove when stable - - run: npm whoami; npm --ignore-scripts publish --provenance --access public env: NODE_AUTH_TOKEN: ${{secrets.npm_token}}