Skip to content

Commit 5d4a7e8

Browse files
committed
Use Go osapispec for release builds
Signed-off-by: Sean Chittenden <sean.chittenden@crowdstrike.com>
1 parent 39ae324 commit 5d4a7e8

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

.github/workflows/release.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,15 @@ jobs:
3131
echo "::notice::Found version ${{ steps.current.outputs.version }}, all good."
3232
fi
3333
34-
- name: Setup Node.js
35-
uses: actions/setup-node@v3
34+
- name: Setup Go
35+
uses: actions/setup-go@v5
3636
with:
37-
node-version: '20'
37+
go-version-file: cmd/osapispec/go.mod
38+
cache-dependency-path: cmd/osapispec/go.sum
3839

39-
- name: Build
40-
run: npm ci && npm run merge
40+
- name: Build Spec
41+
run: go run . merge -source ../../spec -output ../../build/opensearch-openapi.yaml
42+
working-directory: cmd/osapispec
4143

4244
- name: Upload Artifacts
4345
id: upload

0 commit comments

Comments
 (0)