Skip to content

Merge pull request #4350 from serlo/feat/add-learner-events-to-package #623

Merge pull request #4350 from serlo/feat/add-learner-events-to-package

Merge pull request #4350 from serlo/feat/add-learner-events-to-package #623

name: web
on:
push:
branches:
- staging
jobs:
yarn:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: yarn --check-cache
codegen-staging:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: yarn
- run: yarn codegen
- name: Check for uncommitted changes
run: |
if ! git diff --exit-code; then
echo "Please make sure you run `yarn codegen` to get the current API types"
exit 1
fi