fix versions #23
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
name: Publish SDK with changesets | |
on: | |
push: | |
branches: | |
- main | |
env: | |
CI: true | |
# Allow one concurrent deployment | |
concurrency: | |
group: 'sdk' | |
cancel-in-progress: true | |
jobs: | |
publish: | |
timeout-minutes: 15 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v3 | |
with: | |
version: 8 | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: 'pnpm' | |
- name: install dependencies | |
run: pnpm install | |
- name: create and publish versions | |
uses: changesets/action@v1 | |
with: | |
commit: "chore: update versions" | |
title: "chore: update versions" | |
publish: pnpm publish-sdk --no-git-checks | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |