Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ci/fixes #49

Merged
merged 4 commits into from
Oct 4, 2023
Merged
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
62 changes: 0 additions & 62 deletions .github/actions/build/action.yaml

This file was deleted.

17 changes: 10 additions & 7 deletions .github/workflows/generate-sdk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,23 @@ jobs:
outputs:
oas-modified: ${{ steps.oas-modified.outputs.any_modified }}
steps:
- name: Check if `openapi.yaml` has changed
uses: tj-actions/[email protected]
id: oas-modified
with:
files: |
openapi.yaml
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Check if `openapi.yaml` has changed
uses: tj-actions/[email protected]
id: oas-modified
with:
files: |
openapi.yaml
generate-js:
name: Generate JavaScript SDK
runs-on: ubuntu-latest
needs: [get-changed-files]
if: needs.get-changed-files.outputs.oas-modified == 'true'
steps:

- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.ref }}
path: actions
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on: [push]
jobs:
release:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'skip ci')"
if: contains(github.event.head_commit.message, 'ci skip') == 'false' && contains(github.event.head_commit.message, 'skip ci') == 'false'
steps:
- uses: actions/checkout@v3

Expand All @@ -27,9 +27,9 @@ jobs:

- name: Create Release
env:
GITHUB_TOKEN: ${{ secrets.GHA_TEAM_DEVX_KONG_BOT_PAT }}
GH_TOKEN: ${{ secrets.PORTAL_JS_SDK_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN_PRIVATE_PUBLISH }}
run: |
yarn install --frozen-lockfile
yarn build
npx auto shipit
npx auto shipit -vv