From f239b6b87f67fae774d3b97c5d9760c52d0691f5 Mon Sep 17 00:00:00 2001 From: Beace Date: Wed, 24 May 2023 22:48:22 +0800 Subject: [PATCH] ci: use latest npm to enable provenance feature --- .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"