Skip to content

Upgrade to yarn 4

Upgrade to yarn 4 #135

Workflow file for this run

name: Build
on:
push:
branches:
- main
paths-ignore:
- "**.md"
pull_request:
paths-ignore:
- "**.md"
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
container: node:20.9.0-alpine
steps:
- name: Install git
run: apk add --no-cache git
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install dependencies
run: yarn install --immutable
- name: Run build pipeline
run: |
yarn run all
- name: Compare the expected and actual dist/ directories
run: |
if [ "$(git diff --ignore-space-at-eol dist/ | wc -l)" -gt "0" ]; then
echo "Detected uncommitted changes after build. See status below:"
git diff
exit 1
fi
id: diff
# If index.js was different than expected, upload the expected version as an artifact
- uses: actions/upload-artifact@v3
if: ${{ failure() && steps.diff.conclusion == 'failure' }}
with:
name: dist
path: dist/