-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (36 loc) · 1003 Bytes
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Gatsby Build
on:
push:
branches:
- '!master'
pull_request:
workflow_dispatch:
workflow_call:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
- name: Log current commit hash
run: |
sed -i "s|GITHUB_COMMIT_URL_HERE|https://github.com/$GITHUB_REPOSITORY/commit/$GITHUB_SHA|" src/layout/Layout.tsx
- name: Set Node.js
uses: actions/setup-node@master
with:
node-version: 18.x
- name: Install dependencies
run: yarn install --prod --pure-lockfile
- name: Build
run: yarn run build
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
- name: Set Node.js
uses: actions/setup-node@master
with:
node-version: 18.x
- name: Install dependencies
run: yarn install
- name: Lint
run: yarn run lint