From e9dd5fedb6d04d9a4234c1667dfe25470633ed4e Mon Sep 17 00:00:00 2001 From: Beace Date: Thu, 25 May 2023 13:45:59 +0800 Subject: [PATCH] ci: use latest npm to enable provenance feature (#253) --- .github/workflows/npm-publish.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 307d577..6970cf7 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -3,7 +3,7 @@ name: NPM Publish on: release: # This specifies that the build will be triggered when we publish a release - types: + types: - published jobs: @@ -30,6 +30,7 @@ jobs: # Specifies the registry, this field is required! registry-url: https://registry.npmjs.org/ # clean install of your projects' deps. We use "npm ci" to avoid package lock changes + - run: npm install -g npm@latest - run: npm install # set up git since we will later push to the repo - run: git config --global user.name "Artus Version Bot"