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:
jeremywu
2021-08-24 16:31:30 +08:00
committed by GitHub
parent 95dfb86cf5
commit f4bad47cd5

View File

@@ -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}}