Skip to content

Commit

Permalink
env: setup-node action
Browse files Browse the repository at this point in the history
  • Loading branch information
JaeYeopHan committed Aug 16, 2024
1 parent cbd76b0 commit 9d2a996
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 18 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: Node.js Setup
description: Setup Node.js for CI/CD
runs:
using: composite
steps:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: .tool-versions
7 changes: 1 addition & 6 deletions .github/workflows/build-examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,12 @@ on: [pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node: ['18', '20', '22']
name: build
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
uses: ./.github/actions/setup-node
- name: Install dependencies
run: yarn install --immutable
- name: Build
Expand Down
7 changes: 1 addition & 6 deletions .github/workflows/build-website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,12 @@ on: [pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node: ['18', '20', '22']
name: build
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
uses: ./.github/actions/setup-node
- name: Install dependencies
run: yarn install --immutable
- name: Build
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v3
uses: ./.github/actions/setup-node
- name: Install dependencies
run: yarn install --immutable
- name: Check Type
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/sanity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ jobs:
with:
persist-credentials: false
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 20
uses: ./.github/actions/setup-node
- name: Install dependencies
run: yarn install --immutable
- name: Run CI
Expand Down
4 changes: 2 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"editor.inlayHints.enabled": "onUnlessPressed",
"typescript.tsdk": ".yarn/sdks/typescript/lib",
"editor.codeActionsOnSave": {
"quickfix.biome": true,
"source.organizeImports.biome": true
"quickfix.biome": "explicit",
"source.organizeImports.biome": "explicit"
},
"editor.tabSize": 2,
"editor.useTabStops": true,
Expand Down

0 comments on commit 9d2a996

Please sign in to comment.