Skip to content

Commit

Permalink
Merge pull request #831 from yytypescript/chore/830-update-node-version
Browse files Browse the repository at this point in the history
  • Loading branch information
t-yng authored Jan 19, 2024
2 parents a04fdc8 + f46597b commit 06220ae
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 16 deletions.
9 changes: 9 additions & 0 deletions .github/actions/setup-node/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name: 'Setup Node'
description: 'Set up GitHub Actions workflow with a specific version of node.js'

runs:
using: 'composite'
steps:
- uses: actions/setup-node@v4
with:
node-version: 20
5 changes: 2 additions & 3 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 18
- name: Setup Node
uses: "./.github/actions/setup-node"
- run: yarn --frozen-lockfile
- run: yarn build
5 changes: 2 additions & 3 deletions .github/workflows/jest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 18
- name: Setup Node
uses: "./.github/actions/setup-node"
- run: yarn --frozen-lockfile
- run: yarn test
5 changes: 2 additions & 3 deletions .github/workflows/markdownlint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 18
- name: Setup Node
uses: "./.github/actions/setup-node"
- run: yarn --frozen-lockfile
- run: yarn markdownlint
5 changes: 2 additions & 3 deletions .github/workflows/prettier.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 18
- name: Setup Node
uses: "./.github/actions/setup-node"
- run: yarn --frozen-lockfile
- run: yarn prettier
5 changes: 2 additions & 3 deletions .github/workflows/tsc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 18
- name: Setup Node
uses: "./.github/actions/setup-node"
- run: yarn --frozen-lockfile
- run: yarn typecheck
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
"zod": "^3.20.6"
},
"engines": {
"node": "18.x",
"node": "20.x",
"yarn": "^1.22.17"
},
"packageManager": "yarn@1.22.17"
Expand Down

1 comment on commit 06220ae

@vercel
Copy link

@vercel vercel bot commented on 06220ae Jan 19, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.