Skip to content
This repository was archived by the owner on Jul 1, 2024. It is now read-only.

Commit 4556ba7

Browse files
authored
fix: publishing (#35)
* fix: publishing * add publishing file
1 parent 3e8088f commit 4556ba7

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

.github/workflows/sdk_generation.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,5 @@ jobs:
2222
speakeasy_version: latest
2323
secrets:
2424
github_access_token: ${{ secrets.GITHUB_TOKEN }}
25+
npm_token: ${{ secrets.NPM_TOKEN }}
2526
speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }}

.github/workflows/publish.yaml renamed to .github/workflows/sdk_publish.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
name: Publish
2-
3-
on:
4-
workflow_dispatch: {}
2+
"on":
53
push:
64
branches:
75
- main
8-
6+
paths:
7+
- RELEASES.md
8+
- '*/RELEASES.md'
99
jobs:
1010
publish:
11-
uses: speakeasy-api/sdk-generation-action/.github/workflows/sdk-publish.yaml@v15 # Import the sdk publish workflow which will handle the publishing to the package managers
11+
uses: speakeasy-api/sdk-generation-action/.github/workflows/sdk-publish.yaml@v15
1212
secrets:
13+
github_access_token: ${{ secrets.GITHUB_TOKEN }}
1314
npm_token: ${{ secrets.NPM_TOKEN }}
1415
speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }}
15-
github_access_token: ${{ secrets.GITHUB_TOKEN }}
1616
slack_webhook_url: ${{ secrets.SLACK_WEBHOOK_URL }}
1717

1818
docs:

.speakeasy/workflow.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,6 @@ targets:
77
first-target:
88
target: typescript
99
source: openapi
10+
publish:
11+
npm:
12+
token: $npm_token

0 commit comments

Comments
 (0)