Skip to content

Commit

Permalink
Ci/fixes (#49)
Browse files Browse the repository at this point in the history
* ci: adds checkout step to get-changed-files

* fix: make shipit verbose

* fix: GH_TOKEN precedence over GITHUB_TOKEN

* fix: remove unused PR Action
  • Loading branch information
andrewwylde authored Oct 4, 2023
1 parent 70e1984 commit d4d4e62
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 72 deletions.
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

0 comments on commit d4d4e62

Please sign in to comment.