Skip to content

Commit

Permalink
Merge pull request #20 from livepeer/npm-publishing
Browse files Browse the repository at this point in the history
ci: add automatic npm publish action
  • Loading branch information
suhailkakar authored Jul 8, 2024
2 parents 43a8e25 + 62d3609 commit 620070e
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/sdk_publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Publish
permissions:
checks: write
contents: write
pull-requests: write
statuses: write
"on":
push:
branches:
- main
paths:
- RELEASES.md
- '*/RELEASES.md'
jobs:
publish:
uses: speakeasy-api/sdk-generation-action/.github/workflows/sdk-publish.yaml@v15
secrets:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
npm_token: ${{ secrets.NPM_TOKEN }}
speakeasy_api_key: ${{ secrets.SPEAKEASY_API_KEY }}
3 changes: 3 additions & 0 deletions .speakeasy/workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,8 @@ targets:
target: typescript
source: livepeer-studio-api
output: .
publish:
npm:
token: $npm_token
codeSamples:
output: codeSamples.yaml

0 comments on commit 620070e

Please sign in to comment.