Set up Node

This commit is contained in:
CrazyMax 2019-10-23 10:06:29 +02:00
parent 5533456618
commit 0e83c3537b
No known key found for this signature in database
GPG Key ID: 3248E46B6BB8C7F7
3 changed files with 19 additions and 0 deletions

View File

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

View File

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

View File

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