Skip to content
This repository has been archived by the owner on Nov 15, 2024. It is now read-only.

Publish

Publish #59

Workflow file for this run

name: Publish
on:
workflow_run:
workflows: ["CI"]
types:
- completed
push:
branches:
- "main"
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
publish:
if: ${{github.event.workflow_run.conclusion == 'success'}}
runs-on: ubuntu-latest
steps:
- id: checkout
name: Checkout
uses: actions/checkout@v3
- id: setup-bun
name: Setup Bun
uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- id: install-deps
name: Install Dependencies
run: bun install --frozen-lockfile
- id: changesets
name: Create Release Pull Request or Publish
uses: changesets/action@v1
with:
publish: bun run release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}