-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into marcus/fix-broken-serde-schema-generation
- Loading branch information
Showing
5,008 changed files
with
1,484,989 additions
and
1,114,187 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: Publish @fern-api/snippets-core | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
description: "The version of the library to publish." | ||
required: true | ||
type: string | ||
|
||
env: | ||
PACKAGE_NAME: "@fern-api/snippets-core" | ||
GITHUB_TOKEN: ${{ secrets.FERN_GITHUB_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.FERN_NPM_TOKEN }} | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
if: ${{ inputs.version != null }} | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-tags: true | ||
|
||
- name: 📥 Install | ||
uses: ./.github/actions/install | ||
|
||
- uses: bufbuild/buf-setup-action@v1.34.0 | ||
with: | ||
github_token: ${{ github.token }} | ||
|
||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version: "stable" | ||
|
||
- name: Install protoc-gen-openapi | ||
run: go install github.com/google/gnostic/cmd/protoc-gen-openapi@v0.7.0 | ||
|
||
- name: 🧪 Build | ||
run: pnpm --filter=${{ env.PACKAGE_NAME }} compile | ||
|
||
- name: 🧪 Test | ||
run: pnpm --filter=${{ env.PACKAGE_NAME }} test | ||
|
||
- name: Publish @fern-api/snippets-core | ||
run: | | ||
cd packages/snippets/core | ||
pnpm --filter=${{ env.PACKAGE_NAME }} dist ${{ inputs.version }} | ||
cd dist | ||
echo "//registry.npmjs.org/:_authToken=${{ env.NPM_TOKEN }}" > ~/.npmrc | ||
npm publish --access public |
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,39 @@ | ||
imports: | ||
imports: | ||
availability: availability.yml | ||
|
||
types: | ||
WithDocsSchema: | ||
properties: | ||
types: | ||
WithDocsSchema: | ||
properties: | ||
docs: optional<string> | ||
WithName: | ||
properties: | ||
|
||
WithName: | ||
properties: | ||
name: optional<string> | ||
WithAvailability: | ||
properties: | ||
|
||
WithAvailability: | ||
properties: | ||
availability: optional<availability.AvailabilityUnionSchema> | ||
WithDisplayName: | ||
properties: | ||
|
||
WithDisplayName: | ||
properties: | ||
display-name: optional<string> | ||
WithAudiences: | ||
properties: | ||
|
||
WithAudiences: | ||
properties: | ||
audiences: optional<list<string>> | ||
DeclarationSchema: | ||
extends: | ||
|
||
DeclarationSchema: | ||
extends: | ||
- WithDocsSchema | ||
- WithAvailability | ||
- WithAudiences | ||
DeclarationWithoutDocsSchema: | ||
extends: | ||
|
||
DeclarationWithoutDocsSchema: | ||
extends: | ||
- WithAvailability | ||
- WithAudiences | ||
DeclarationWithNameSchema: | ||
extends: | ||
|
||
DeclarationWithNameSchema: | ||
extends: | ||
- DeclarationSchema | ||
- WithName | ||
- WithName |
Oops, something went wrong.