mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
fix(build): github release CI issue (#3023)
* fix(build): github release CI issue - Fix release.yml syntax issue * Update publish-npm.yml
This commit is contained in:
6
.github/workflows/publish-npm.yml
vendored
6
.github/workflows/publish-npm.yml
vendored
@@ -31,9 +31,11 @@ jobs:
|
||||
registry-url: https://registry.npmjs.com/
|
||||
- name: Get version
|
||||
run: echo "TAG_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
|
||||
run: echo "GIT_HEAD=${GITHUB_SHA}" >> GITHUB_ENV
|
||||
- name: build&publish
|
||||
- name: Get git head
|
||||
run: echo "GIT_HEAD=${GITHUB_SHA}" >> $GITHUB_ENV
|
||||
- name: Gen npmrc
|
||||
run: echo "//registry.npmjs.com/:_authToken=${{ secrets.NPM_PUBLISH_TOKEN }}" > ./.npmrc
|
||||
- name: Build&publish
|
||||
run: sh ./scripts/monorepo.sh
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{secrets.NPM_PUBLISH_TOKEN}}
|
||||
|
||||
Reference in New Issue
Block a user