From f7788a63eb444077a04abe6ca4b30a821393426e Mon Sep 17 00:00:00 2001 From: Jordi Roig <71030893+jordiroig-tf@users.noreply.github.com> Date: Fri, 23 Feb 2024 16:49:57 +0100 Subject: [PATCH] feat: bump to node 20 AI-1061 (#175) * feat: bump node to v20 * feat: update to actions/checkout v4 * feat: use node 20 in workflows * chore: refactor workflow * chore: remove unnecessary step --- .github/workflows/ci-standard-checks.yml | 11 +---------- .github/workflows/release.yml | 2 +- .github/workflows/test-and-release-beta.yml | 12 +++++++++--- .github/workflows/verify-transpiled-code.yaml | 6 +++++- action.yml | 2 +- package.json | 3 +++ 6 files changed, 20 insertions(+), 16 deletions(-) diff --git a/.github/workflows/ci-standard-checks.yml b/.github/workflows/ci-standard-checks.yml index 6875c89..7bbf256 100644 --- a/.github/workflows/ci-standard-checks.yml +++ b/.github/workflows/ci-standard-checks.yml @@ -14,13 +14,4 @@ on: - main jobs: ci-standard-checks: - runs-on: ubuntu-latest - steps: - - name: Check Out Source Code - uses: actions/checkout@v2 - with: - fetch-depth: 0 - - name: CI Standard Checks - uses: Typeform/ci-standard-checks@v1-beta - with: - githubToken: ${{ secrets.GITHUB_TOKEN }} + uses: Typeform/.github/.github/workflows/ci-standard-checks-workflow.yaml@v1 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ed84904..2bdaf2a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,7 +7,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Update major version tag run: | git config --global user.email "setizaps@typeform.com" diff --git a/.github/workflows/test-and-release-beta.yml b/.github/workflows/test-and-release-beta.yml index e64b11d..164acc5 100644 --- a/.github/workflows/test-and-release-beta.yml +++ b/.github/workflows/test-and-release-beta.yml @@ -14,7 +14,10 @@ jobs: run: | npm config set '//npm.pkg.github.com/:_authToken' ${{ secrets.GITHUB_TOKEN }} npm config set @typeform:registry https://npm.pkg.github.com/ - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 20 - run: | yarn install - run: | @@ -22,9 +25,12 @@ jobs: test: # make sure the action works on a clean machine without building runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: fetch-depth: 0 + - uses: actions/setup-node@v4 + with: + node-version: 20 - name: Test all checks uses: ./ with: @@ -50,7 +56,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Semantic Release id: semantic uses: codfish/semantic-release-action@4e9fa8ec064813465dfeccac8ae70f1348fb5dec diff --git a/.github/workflows/verify-transpiled-code.yaml b/.github/workflows/verify-transpiled-code.yaml index 6def2ce..7566089 100644 --- a/.github/workflows/verify-transpiled-code.yaml +++ b/.github/workflows/verify-transpiled-code.yaml @@ -9,7 +9,11 @@ jobs: verify: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 20 + - run: | yarn install mv dist/ source-dist diff --git a/action.yml b/action.yml index ad16bca..d93aabc 100644 --- a/action.yml +++ b/action.yml @@ -14,5 +14,5 @@ inputs: required: true description: 'The github token to get PR info when checking for Jira Issue key' runs: - using: 'node16' + using: 'node20' main: 'dist/index.js' diff --git a/package.json b/package.json index d2e3431..9b11d2d 100644 --- a/package.json +++ b/package.json @@ -68,5 +68,8 @@ "lint-staged": { "*.js": "eslint --cache --fix", "*.ts": "prettier --write" + }, + "engines": { + "node": "20" } }