Skip to content

Merge pull request #12 from MrSquaare/changeset-release/main #12

Merge pull request #12 from MrSquaare/changeset-release/main

Merge pull request #12 from MrSquaare/changeset-release/main #12

Workflow file for this run

name: Release
on:
push:
branches:
- main
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup environment
uses: ./.github/actions/setup-env
- name: Build
run: pnpm build --filter @sandwich-ui/core --filter @sandwich-ui/react
- name: Create Release Pull Request or Publish to npm
uses: changesets/action@v1
with:
version: pnpm run version
publish: pnpm run publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}