Skip to content

Commit 333bd8a

Browse files
committed
Fix GitHub Actions build issues
1 parent a001291 commit 333bd8a

10 files changed

Lines changed: 5750 additions & 230 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ jobs:
5858
repository: "nulib/tfvars"
5959
ref: main
6060
path: ".tfvars"
61+
- uses: oven-sh/setup-bun@v2
6162
- uses: actions/setup-python@v2
6263
with:
6364
python-version: "3.12"

.github/workflows/staging-types.yml

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -30,21 +30,12 @@ jobs:
3030
with:
3131
path: "${{ env.TMP_SRCDIR }}"
3232
fetch-depth: 1
33-
- uses: actions/setup-node@v4
34-
with:
35-
cache-dependency-path: "${{ env.TMP_SRCDIR }}/api/package-lock.json"
36-
node-version: 20.x
37-
cache: "npm"
38-
- name: get-npm-version
39-
id: package-version
40-
uses: martinbeentjes/npm-get-version-action@main
41-
with:
42-
path: "${{ env.TMP_SRCDIR }}/api"
33+
- uses: oven-sh/setup-bun@v2
4334
- name: Generate Typescript file
4435
working-directory: "${{ env.TMP_SRCDIR }}/api"
4536
run: |
46-
npm ci
47-
npx openapi-typescript ../docs/docs/spec/data-types.yaml --output schemas.ts
37+
bun install
38+
bun x openapi-typescript ../docs/docs/spec/data-types.yaml --output schemas.ts
4839
- name: Checkout dcapi-types
4940
uses: actions/checkout@v3
5041
with:

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ sgport open all 3003
8484

8585
```
8686
export NEXT_PUBLIC_DCAPI_ENDPOINT=https://USER_PREFIX.dev.rdc.library.northwestern.edu:3002
87-
npm run dev
87+
bun run dev
8888
```
8989

9090
Access the app in a browser at: https://USER_PREFIX.dev.rdc.library.northwestern.edu:3003/
@@ -176,7 +176,7 @@ For an in-depth look, or to learn how to define things for which there aren't go
176176
`openapi.html` renders the Swagger UI directly from the unmodified `openapi.yaml`. In addition, the build process generates a JSON copy of the spec using the [OpenAPI Generator CLI](https://openapi-generator.tech). In order to make sure the spec is valid before checking it in, run:
177177

178178
```shell
179-
npm run validate-spec
179+
bun run validate-spec
180180
```
181181

182182
This check is also part of the CI test workflow, so an invalid spec file will cause the branch to fail CI.

api/bun.lock

Lines changed: 74 additions & 160 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)