From 6e92e8a68bd2bd7ba111e8c47bd04c98f6d74408 Mon Sep 17 00:00:00 2001 From: Joel Arvidsson Date: Thu, 26 Oct 2023 19:09:00 +0200 Subject: [PATCH] Use node 20 in GH actions --- .github/workflows/deploy.yml | 11 +++++------ .github/workflows/tests.yml | 16 ++++++---------- .node-version | 1 + 3 files changed, 12 insertions(+), 16 deletions(-) create mode 100644 .node-version diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index ed412c8..b77f2cf 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -9,14 +9,13 @@ jobs: publish: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - with: - lfs: true + - uses: actions/checkout@v4 - name: Use Node.js - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: - node-version: '14.x' + node-version-file: '.node-version' - name: Publish - uses: JS-DevTools/npm-publish@v1 + uses: JS-DevTools/npm-publish@v3 with: token: ${{ secrets.NPM_PUBLISH_TOKEN }} + provenance: true diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index dc8c87b..fa9d85e 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -10,13 +10,11 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - with: - lfs: true + - uses: actions/checkout@v4 - name: Use Node.js - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: - node-version: '14.x' + node-version-file: '.node-version' - name: Install dependencies run: yarn --frozen-lockfile --non-interactive --silent --ignore-scripts - name: Run tests @@ -27,13 +25,11 @@ jobs: runs-on: macos-latest steps: - - uses: actions/checkout@v2 - with: - lfs: true + - uses: actions/checkout@v4 - name: Use Node.js - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: - node-version: '14.x' + node-version-file: '.node-version' - name: Install dependencies run: yarn --frozen-lockfile --non-interactive --silent - name: Install example project dependencies diff --git a/.node-version b/.node-version new file mode 100644 index 0000000..6569dfa --- /dev/null +++ b/.node-version @@ -0,0 +1 @@ +20.8.1