fix: install latest version of npm in pipeline for trusted publishing
parent
4f67cbeb4d
commit
09838bc290
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue