Skip to content

Fixes path id name #107

Fixes path id name

Fixes path id name #107

Workflow file for this run

name: CI
on:
pull_request:
branches: [main]
permissions:
contents: read
id-token: write
jobs:
ci:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.tool-versions'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Run lint check
run: npm run lint:check
- name: Run build
run: npm run build
- name: Verify dist files are up to date
run: |
if git diff --exit-code dist/; then
echo "✅ Dist files are up to date"
else
echo "❌ Dist files have changed after build!"
echo "Please run 'npm run build' locally and commit the updated dist files."
exit 1
fi
- name: Verify schema files are up to date
run: |
if git diff --exit-code schema/; then
echo "✅ Schema files are up to date"
else
echo "❌ Schema files have changed after build!"
echo "Please run 'npm run build' locally and commit the updated schema files."
exit 1
fi
- name: Authenticate to GCloud
uses: google-github-actions/auth@v2
with:
workload_identity_provider: projects/78526959552/locations/global/workloadIdentityPools/github/providers/ofys-api
service_account: github-ofys-api@braver-ops.iam.gserviceaccount.com
- name: Login to Artifact Registry
run: npm run artifactregistry-login
- name: Configure Git
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
- name: Publish RC
run: ./scripts/publish.sh --rc