Skip to content

Update actions/setup-node digest to 5e21ff4 #210

Update actions/setup-node digest to 5e21ff4

Update actions/setup-node digest to 5e21ff4 #210

Workflow file for this run

name: Gatsby Build
on:
push:
branches:
- '!master'
pull_request:
workflow_dispatch:
workflow_call:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # 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@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # 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