chore(ci): Use --tag of npm publish

This commit is contained in:
강동윤 (Donny) 2023-10-12 10:10:37 +09:00
parent 70b65fb91f
commit 5779a7e26c

View File

@ -426,6 +426,13 @@ jobs:
- name: Set release name
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Tag npm release (default, latest)
run: echo "NPM_TAG=latest" >> $GITHUB_ENV
- name: Tag npm release (nightly)
if: ${{ contains(github.ref, 'nightly') }}
run: echo "NPM_TAG=nightly" >> $GITHUB_ENV
- name: Install dependencies
run: yarn install --ignore-scripts --registry https://registry.npmjs.org --network-timeout 300000
@ -458,7 +465,7 @@ jobs:
run: |
npm config set provenance true
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
npm publish --access public
npm publish --access public --tag $NPM_TAG
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}