Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 0 additions & 36 deletions .circleci/config.yml

This file was deleted.

37 changes: 37 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@

on:
push:
branches:
- master

name: publish

# Required for OIDC auth against npmjs.org, see https://docs.npmjs.com/trusted-publishers
permissions:
id-token: write
contents: read

jobs:
publish:
name: Publish @spaceapi/validator-client on NPM registry
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v6
with:
node-version: "20"
registry-url: "https://registry.npmjs.org"
- name: Setup dependencies
run: |
npm install -g npm@latest
npm install @openapitools/openapi-generator-cli -g
- name: Generate OpenAPI client
run: |
openapi-generator-cli batch \*.yml
cd javascript
npm install
npm run build
- name: Publish package
run: |
cd javascript
npm publish --access=public
26 changes: 26 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@

on: push

name: test

jobs:
test:
name: Build @spaceapi/validator-client
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v6
with:
node-version: "20"
registry-url: "https://registry.npmjs.org"
- name: Setup dependencies
run: |
npm install -g npm@latest
npm install @openapitools/openapi-generator-cli -g
- name: Generate OpenAPI client
run: |
openapi-generator-cli batch \*.yml
cd javascript
npm install
npm run build