Skip to content

Commit 09838bc

Browse files
committed
fix: install latest version of npm in pipeline for trusted publishing
1 parent 4f67cbe commit 09838bc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/publish.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ jobs:
4545
echo "SOURCE_BRANCH=$SOURCE_BRANCH" >> $GITHUB_OUTPUT
4646
- name: Set package version
4747
run: yarn version --new-version "${{ steps.get_version.outputs.VERSION }}" --no-git-tag-version
48+
- name: Install latests npm (for trusted publishing)
49+
run: npm install -g npm@latest
4850
- name: Publish package
4951
run: npm publish --provenance --access public --tag ${{ steps.extract_tag.outputs.NPM_TAG }}
5052
- name: Push version bump

0 commit comments

Comments
 (0)