Set up Node
This commit is contained in:
parent
5533456618
commit
0e83c3537b
6
.github/workflows/master.yml
vendored
6
.github/workflows/master.yml
vendored
|
@ -20,6 +20,12 @@ jobs:
|
||||||
# https://github.com/actions/checkout/issues/6
|
# https://github.com/actions/checkout/issues/6
|
||||||
name: Fix detached HEAD
|
name: Fix detached HEAD
|
||||||
run: git checkout ${GITHUB_REF#refs/heads/}
|
run: git checkout ${GITHUB_REF#refs/heads/}
|
||||||
|
-
|
||||||
|
# https://github.com/actions/setup-node
|
||||||
|
name: Set up Node
|
||||||
|
uses: actions/setup-node@v1
|
||||||
|
with:
|
||||||
|
node-version: 12.x
|
||||||
-
|
-
|
||||||
name: Prune prod
|
name: Prune prod
|
||||||
run: |
|
run: |
|
||||||
|
|
6
.github/workflows/release.yml
vendored
6
.github/workflows/release.yml
vendored
|
@ -40,6 +40,12 @@ jobs:
|
||||||
if [ -n "${{ steps.prepare.outputs.major_exists }}" ]; then
|
if [ -n "${{ steps.prepare.outputs.major_exists }}" ]; then
|
||||||
git branch --set-upstream-to=origin/releases/${{ steps.prepare.outputs.major_tag }} releases/${{ steps.prepare.outputs.major_tag }}
|
git branch --set-upstream-to=origin/releases/${{ steps.prepare.outputs.major_tag }} releases/${{ steps.prepare.outputs.major_tag }}
|
||||||
fi
|
fi
|
||||||
|
-
|
||||||
|
# https://github.com/actions/setup-node
|
||||||
|
name: Set up Node
|
||||||
|
uses: actions/setup-node@v1
|
||||||
|
with:
|
||||||
|
node-version: 12.x
|
||||||
-
|
-
|
||||||
name: NPM production deps
|
name: NPM production deps
|
||||||
run: |
|
run: |
|
||||||
|
|
7
.github/workflows/uncommited.yml
vendored
7
.github/workflows/uncommited.yml
vendored
|
@ -12,6 +12,12 @@ jobs:
|
||||||
# https://github.com/actions/checkout
|
# https://github.com/actions/checkout
|
||||||
name: Checkout
|
name: Checkout
|
||||||
uses: actions/checkout@v1
|
uses: actions/checkout@v1
|
||||||
|
-
|
||||||
|
# https://github.com/actions/setup-node
|
||||||
|
name: Set up Node
|
||||||
|
uses: actions/setup-node@v1
|
||||||
|
with:
|
||||||
|
node-version: 12.x
|
||||||
-
|
-
|
||||||
name: Build
|
name: Build
|
||||||
run: |
|
run: |
|
||||||
|
@ -24,4 +30,5 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
if [[ `git status --porcelain` ]]; then
|
if [[ `git status --porcelain` ]]; then
|
||||||
echo "##[error] found changed files after build. please 'npm run build && npm run format && npm prune --production'"
|
echo "##[error] found changed files after build. please 'npm run build && npm run format && npm prune --production'"
|
||||||
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue
Block a user