Skip to content

Fix build workflow

Fix build workflow #2

Workflow file for this run

name: 'Build'
on:
workflow_dispatch:
push:
branches:
- main
paths-ignore:
- 'docs/openapi.json'
pull_request:
branches:
- main
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '20'
cache: 'npm'
- run: npm ci
- name: Compile TypeSpec
run: tsp compile src/main.tsp --emit @typespec/openapi3
- name: Fix OpenAPI
run: ./fixOpenApi.ps1
shell: pwsh
- name: Update docs
uses: test-room-7/action-update-file@v2.0.0