mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-31 07:40:33 +00:00
fix(ci): env in circle is not executable [release]
This commit is contained in:
parent
052512eac4
commit
a4c503bfbb
@ -22,6 +22,9 @@ release: &release
|
|||||||
- run:
|
- run:
|
||||||
name: release
|
name: release
|
||||||
command: |
|
command: |
|
||||||
|
if [ -z "$COMMIT_MSG" ]; then
|
||||||
|
COMMIT_MSG=$(git log --format=oneline -n 1 $CIRCLE_SHA1)
|
||||||
|
fi
|
||||||
if echo "$COMMIT_MSG" | grep -o "\[release\]"; then
|
if echo "$COMMIT_MSG" | grep -o "\[release\]"; then
|
||||||
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
|
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
|
||||||
echo "//registry.yarnpkg.com/:_authToken=$NPM_TOKEN" >> ~/.npmrc
|
echo "//registry.yarnpkg.com/:_authToken=$NPM_TOKEN" >> ~/.npmrc
|
||||||
@ -134,8 +137,6 @@ jobs:
|
|||||||
# --------------------------------------------------------------------------
|
# --------------------------------------------------------------------------
|
||||||
release-commit:
|
release-commit:
|
||||||
<<: *release
|
<<: *release
|
||||||
environment:
|
|
||||||
COMMIT_MSG: git log --format=oneline -n 1 $CIRCLE_SHA1
|
|
||||||
|
|
||||||
release-nightly:
|
release-nightly:
|
||||||
<<: *release
|
<<: *release
|
||||||
|
Loading…
Reference in New Issue
Block a user