fix: install latest version of npm in pipeline for trusted publishing

pull/210/head
Boaz Poolman 2026-03-02 14:07:41 +01:00
parent 4f67cbeb4d
commit 09838bc290
1 changed files with 2 additions and 0 deletions

View File

@ -45,6 +45,8 @@ jobs:
echo "SOURCE_BRANCH=$SOURCE_BRANCH" >> $GITHUB_OUTPUT echo "SOURCE_BRANCH=$SOURCE_BRANCH" >> $GITHUB_OUTPUT
- name: Set package version - name: Set package version
run: yarn version --new-version "${{ steps.get_version.outputs.VERSION }}" --no-git-tag-version run: yarn version --new-version "${{ steps.get_version.outputs.VERSION }}" --no-git-tag-version
- name: Install latests npm (for trusted publishing)
run: npm install -g npm@latest
- name: Publish package - name: Publish package
run: npm publish --provenance --access public --tag ${{ steps.extract_tag.outputs.NPM_TAG }} run: npm publish --provenance --access public --tag ${{ steps.extract_tag.outputs.NPM_TAG }}
- name: Push version bump - name: Push version bump