Skip to content

Commit

Permalink
ci: Add a workflow to publish the sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
MohamedBassem committed Jan 5, 2025
1 parent 969acaa commit 93f8bdb
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/sdk.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Publish CLI Package to npm
on:
push:
tags:
# This is a glob pattern not a regex
- 'sdk/v[0-9]+.[0-9]+.[0-9]+'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Setup
uses: ./tooling/github/setup

- name: Build SDK
run: pnpm build
working-directory: packages/sdk

- run: pnpm publish --access public --no-git-checks
working-directory: packages/sdk
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }}

0 comments on commit 93f8bdb

Please sign in to comment.