2
0
mirror of https://github.com/tenrok/axios.git synced 2026-05-30 15:24:11 +03:00

chore(ci): add tag resolution for npm releases based on package version; (#6404)

This commit is contained in:
Dmitriy Mozgovoy
2024-05-19 20:34:58 +03:00
committed by GitHub
parent 870e0a76f6
commit 097b0d18e9
4 changed files with 66 additions and 35 deletions
+5 -1
View File
@@ -42,6 +42,10 @@ jobs:
id: tag_version
with:
tag: "v${{ steps.package-version.outputs.current-version }}"
############# RESOLVE NPM TAG ##############
- name: NPM TAG
id: 'npm_tag'
run: node ./bin/resolveNPMTag.js
############# GITHUB RELEASE ##############
- name: "Create a GitHub release v${{ steps.package-version.outputs.current-version }}"
uses: ncipollo/release-action@v1
@@ -53,7 +57,7 @@ jobs:
${{ steps.extract-release-notes.outputs.release_notes }}
############# NPM RELEASE ##############
- name: Publish the release to NPM
run: npm publish --provenance --access public
run: npm publish --provenance --access public --tag ${{ steps.npm_tag.outputs.tag || 'latest' }}
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
notify: