Skip to content

Commit afae90b

Browse files
committed
feat: configure checkout and setup steps
1 parent e0d189b commit afae90b

File tree

2 files changed

+23
-2
lines changed

2 files changed

+23
-2
lines changed

.github/actions/setup/action.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Setup
2+
description: Setup Node.js and install dependencies
3+
4+
runs:
5+
using: composite
6+
steps:
7+
- name: Use Node.js 18.x
8+
uses: actions/setup-node@v4
9+
with:
10+
node-version: 18.x
11+
12+
- name: Enable corepack
13+
run: corepack enable
14+
shell: bash
15+
16+
- name: Install dependencies
17+
run: yarn --immutable
18+
shell: bash

.github/workflows/deploy.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,8 @@ jobs:
88
runs-on: ubuntu-latest
99

1010
steps:
11-
- name: Echo
12-
run: echo "Hello, world!"
11+
- name: Checkout
12+
uses: actions/checkout@v4
13+
14+
- name: Setup
15+
uses: ./.github/actions/setup

0 commit comments

Comments
 (0)