Skip to content

Commit 613e864

Browse files
committed
chore: add publishing
1 parent 9f974ac commit 613e864

File tree

4 files changed

+42
-22
lines changed

4 files changed

+42
-22
lines changed

.github/workflows/generation.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.

.github/workflows/sdk_generation.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Generate
2+
"on":
3+
workflow_dispatch:
4+
inputs:
5+
force:
6+
description: Force the generation of the SDKs
7+
type: boolean
8+
default: false
9+
schedule:
10+
- cron: 0 0 * * *
11+
jobs:
12+
generate:
13+
uses: speakeasy-api/sdk-generation-action/.github/workflows/workflow-executor.yaml@v15
14+
with:
15+
force: ${{ github.event.inputs.force }}
16+
mode: pr
17+
speakeasy_version: latest
18+
secrets:
19+
github_access_token: ${{ secrets.GITHUB_TOKEN }}
20+
npm_token: ${{ secrets.NPM_TOKEN }}
21+
speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }}

.github/workflows/sdk_publish.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Publish
2+
permissions:
3+
checks: write
4+
contents: write
5+
pull-requests: write
6+
statuses: write
7+
"on":
8+
push:
9+
branches:
10+
- main
11+
paths:
12+
- RELEASES.md
13+
- '*/RELEASES.md'
14+
jobs:
15+
publish:
16+
uses: speakeasy-api/sdk-generation-action/.github/workflows/sdk-publish.yaml@v15
17+
secrets:
18+
github_access_token: ${{ secrets.GITHUB_TOKEN }}
19+
npm_token: ${{ secrets.NPM_TOKEN }}
20+
speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }}

.speakeasy/workflow.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ targets:
1212
source: my-source
1313
publish:
1414
npm:
15-
token: $NPM_TOKEN
15+
token: $npm_token

0 commit comments

Comments
 (0)