Skip to content

Commit

Permalink
feat: bump to node 20 AI-1061 (#175)
Browse files Browse the repository at this point in the history
* feat: bump node to v20

* feat: update to actions/checkout v4

* feat: use node 20 in workflows

* chore: refactor workflow

* chore: remove unnecessary step
  • Loading branch information
jordiroig-tf authored Feb 23, 2024
1 parent de51097 commit f7788a6
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 16 deletions.
11 changes: 1 addition & 10 deletions .github/workflows/ci-standard-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 "[email protected]"
Expand Down
12 changes: 9 additions & 3 deletions .github/workflows/test-and-release-beta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,23 @@ 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: |
yarn run all
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:
Expand All @@ -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
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/verify-transpiled-code.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,5 +68,8 @@
"lint-staged": {
"*.js": "eslint --cache --fix",
"*.ts": "prettier --write"
},
"engines": {
"node": "20"
}
}

0 comments on commit f7788a6

Please sign in to comment.