mirror of
https://github.com/swc-project/swc.git
synced 2024-12-24 06:05:02 +03:00
chore(ci): Use --tag
of npm publish
This commit is contained in:
parent
70b65fb91f
commit
5779a7e26c
9
.github/workflows/publish-core.yml
vendored
9
.github/workflows/publish-core.yml
vendored
@ -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 }}
|
||||
|
Loading…
Reference in New Issue
Block a user