Skip to content

Commit

Permalink
(ci): Add workflow dispatch to publish fdr-sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
amckinney committed Jul 24, 2024
1 parent 9d189ec commit 8961880
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/publish-fdr-sdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@ name: Publish FDR SDKs

on:
workflow_call:
workflow_dispatch:
inputs:
branch:
description: "The branch to release from"
required: true
default: "main"

env:
PACKAGE_NAME: "@fern-platform/fdr"
Expand All @@ -18,6 +24,7 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.inputs.branch || "main" }}

- name: 📥 Install
uses: ./.github/actions/install
Expand All @@ -26,19 +33,19 @@ jobs:
run: npm install -g fern-api

- name: Publish Fiddle FDR SDK
env:
env:
FERN_TOKEN: ${{ secrets.FERN_TOKEN }}
run: |
git_version="$(scripts/fdr-version.sh)"
fern generate --api fdr --group fiddle --version $git_version
publish_sdk:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.inputs.branch || "main" }}

- name: 📥 Install
uses: ./.github/actions/install
Expand All @@ -47,7 +54,7 @@ jobs:
run: pnpm turbo codegen build test --filter=${{ env.PACKAGE_NAME }}

- name: Publish FDR SDK
env:
env:
NPM_TOKEN: ${{ secrets.FERN_NPM_TOKEN }}
run: |
git_version="$(scripts/fdr-version.sh)"
Expand Down

0 comments on commit 8961880

Please sign in to comment.