Skip to content

Commit cc4fe05

Browse files
committed
fix: setup node for publishing, install latest npm
1 parent 017719d commit cc4fe05

2 files changed

Lines changed: 16 additions & 4 deletions

File tree

.github/workflows/publish.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,16 @@ jobs:
1616
name: Publish @spaceapi/validator-client on NPM registry
1717
runs-on: ubuntu-latest
1818
steps:
19-
- uses: actions/checkout@v4
20-
- name: Generate OpenAPI client
19+
- uses: actions/checkout@v5
20+
- uses: actions/setup-node@v6
21+
with:
22+
registry-url: "https://registry.npmjs.org"
23+
- name: Setup dependencies
2124
run: |
25+
npm install -g npm@latest
2226
npm install @openapitools/openapi-generator-cli -g
27+
- name: Generate OpenAPI client
28+
run: |
2329
openapi-generator-cli batch \*.yml
2430
cd javascript
2531
npm install

.github/workflows/test.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,16 @@ jobs:
88
name: Build @spaceapi/validator-client
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v4
12-
- name: Generate OpenAPI client
11+
- uses: actions/checkout@v5
12+
- uses: actions/setup-node@v6
13+
with:
14+
registry-url: "https://registry.npmjs.org"
15+
- name: Setup dependencies
1316
run: |
17+
npm install -g npm@latest
1418
npm install @openapitools/openapi-generator-cli -g
19+
- name: Generate OpenAPI client
20+
run: |
1521
openapi-generator-cli batch \*.yml
1622
cd javascript
1723
npm install

0 commit comments

Comments
 (0)