chore(medusa-oas-cli,oas-github-ci): remove v2 option + generate v2 by default (#7304)
* chore(medusa-oas-cli,oas-github-ci): remove v2 option + generate v2 by default * fixes to changeset * fix public url path
This commit is contained in:
52
.github/workflows/generate-public-references.yml
vendored
52
.github/workflows/generate-public-references.yml
vendored
@@ -10,56 +10,6 @@ on:
|
||||
types: [published]
|
||||
|
||||
jobs:
|
||||
api:
|
||||
runs-on: ubuntu-latest
|
||||
if: ${{ github.event_name == 'release' || github.event.inputs.referenceName == 'all' || github.event.inputs.referenceName == 'api' }}
|
||||
steps:
|
||||
- name: Cancel Previous Runs
|
||||
uses: styfle/cancel-workflow-action@0.11.0
|
||||
with:
|
||||
access_token: ${{ github.token }}
|
||||
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
token: ${{ secrets.REFERENCE_PAT }}
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Setup Node.js environment
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: "16.10.0"
|
||||
cache: "yarn"
|
||||
|
||||
- name: Install dependencies
|
||||
uses: ./.github/actions/cache-deps
|
||||
with:
|
||||
extension: reference
|
||||
|
||||
- name: Build Packages
|
||||
run: yarn build
|
||||
|
||||
- name: Generate API Reference
|
||||
run: yarn openapi:generate
|
||||
|
||||
- name: Install and Build www/utils dependencies
|
||||
run: yarn && yarn build
|
||||
working-directory: www/utils
|
||||
|
||||
- name: Generate Changeset
|
||||
run: "yarn generate:changeset"
|
||||
working-directory: www/utils/packages/scripts
|
||||
|
||||
- name: Create Pull Request
|
||||
uses: peter-evans/create-pull-request@v4
|
||||
with:
|
||||
commit-message: "chore(docs): Generated API Reference"
|
||||
base: "develop"
|
||||
title: "chore(docs): Updated API Reference"
|
||||
labels: "type: chore"
|
||||
add-paths: www/apps/api-reference/specs
|
||||
branch: "docs/generate-api-ref"
|
||||
branch-suffix: "timestamp"
|
||||
api-v2:
|
||||
runs-on: ubuntu-latest
|
||||
if: ${{ github.event_name == 'release' || github.event.inputs.referenceName == 'all' || github.event.inputs.referenceName == 'api' }}
|
||||
@@ -90,7 +40,7 @@ jobs:
|
||||
run: yarn build
|
||||
|
||||
- name: Generate API Reference (v2)
|
||||
run: yarn openapi:generate --v2
|
||||
run: yarn openapi:generate
|
||||
|
||||
- name: Install and Build www/utils dependencies
|
||||
run: yarn && yarn build
|
||||
|
||||
Reference in New Issue
Block a user