From 0e83c3537b56111707d71ed1946a0d39bc638b0d Mon Sep 17 00:00:00 2001 From: CrazyMax Date: Wed, 23 Oct 2019 10:06:29 +0200 Subject: [PATCH] Set up Node --- .github/workflows/master.yml | 6 ++++++ .github/workflows/release.yml | 6 ++++++ .github/workflows/uncommited.yml | 7 +++++++ 3 files changed, 19 insertions(+) diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index 6f434d0..608b00a 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -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: | diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 07188f0..38c471f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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: | diff --git a/.github/workflows/uncommited.yml b/.github/workflows/uncommited.yml index 14d4e34..28556da 100644 --- a/.github/workflows/uncommited.yml +++ b/.github/workflows/uncommited.yml @@ -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