From b61360999fc9b4dbab0a0c4797eaeb11f38fb1bd Mon Sep 17 00:00:00 2001 From: daz Date: Wed, 24 Jan 2024 15:50:37 -0700 Subject: [PATCH] Use setup-node to control Node version to build --- .github/actions/build-dist/action.yml | 5 +++++ .github/workflows/ci-verify-outputs.yml | 3 +++ 2 files changed, 8 insertions(+) diff --git a/.github/actions/build-dist/action.yml b/.github/actions/build-dist/action.yml index 6baf11f..e0764d2 100644 --- a/.github/actions/build-dist/action.yml +++ b/.github/actions/build-dist/action.yml @@ -3,9 +3,14 @@ name: 'Build and upload distribution' runs: using: "composite" steps: + - uses: actions/setup-node@v4 + with: + node-version: 20 - name: Build distribution shell: bash run: | + npm -v + node -v npm install npm run build - name: Upload distribution diff --git a/.github/workflows/ci-verify-outputs.yml b/.github/workflows/ci-verify-outputs.yml index 545c732..8d78b24 100644 --- a/.github/workflows/ci-verify-outputs.yml +++ b/.github/workflows/ci-verify-outputs.yml @@ -17,6 +17,9 @@ jobs: steps: - name: Checkout sources uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 20 - name: Build run: | npm -v