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
|
||||
name: Fix detached HEAD
|
||||
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
|
||||
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
|
||||
git branch --set-upstream-to=origin/releases/${{ steps.prepare.outputs.major_tag }} releases/${{ steps.prepare.outputs.major_tag }}
|
||||
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
|
||||
run: |
|
||||
|
|
7
.github/workflows/uncommited.yml
vendored
7
.github/workflows/uncommited.yml
vendored
|
@ -12,6 +12,12 @@ jobs:
|
|||
# https://github.com/actions/checkout
|
||||
name: Checkout
|
||||
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
|
||||
run: |
|
||||
|
@ -24,4 +30,5 @@ jobs:
|
|||
run: |
|
||||
if [[ `git status --porcelain` ]]; then
|
||||
echo "##[error] found changed files after build. please 'npm run build && npm run format && npm prune --production'"
|
||||
exit 1
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue
Block a user