This repository was archived by the owner on Jun 3, 2025. It is now read-only.
Update job test unit and wiremock mappings #19
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: on-push | |
on: | |
push: | |
jobs: | |
build: | |
runs-on: | |
- ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Generate Typescript Client | |
uses: openapi-generators/openapitools-generator-action@v1 | |
with: | |
generator: typescript-fetch | |
openapi-file: spec.json | |
command-args: -p supportsES6=true -p npmName=awx-api-client -p npmVersion=1.0.0 | |
- name: Use Node.js 20.x | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20.x | |
registry-url: 'https://npm.pkg.github.com' | |
- run: corepack enable | |
- name: Use Yarn | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20.x | |
cache: yarn | |
- name: Build Typescript Client | |
working-directory: typescript-fetch-client | |
run: yarn install && yarn build | |
- name: Publish Typescript Client | |
run: npm publish | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |