Skip to content

fix content not udpated in settings (#2619) #213

fix content not udpated in settings (#2619)

fix content not udpated in settings (#2619) #213

# Created using @tscircuit/plop (npm install -g @tscircuit/plop)
name: Publish to npm
on:
push:
branches:
- main
paths:
- 'fake-snippets-api/**'
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-latest
if: ${{ !(github.event_name == 'push' && startsWith(github.event.head_commit.message, 'v')) }}
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.TSCIRCUIT_BOT_GITHUB_TOKEN }}
- name: Setup bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- uses: actions/setup-node@v3
with:
node-version: 20
registry-url: https://registry.npmjs.org/
- run: npm install -g pver
- run: bun install --frozen-lockfile
- run: bun run build:fake-api
- run: pver release --no-push-main
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.TSCIRCUIT_BOT_GITHUB_TOKEN }}
- name: Create Pull Request
id: create-pr
uses: peter-evans/create-pull-request@v5
with:
commit-message: "chore: bump version"
title: "chore: bump version"
body: "Automated package update"
branch: bump-version-${{ github.run_number }}
base: main
token: ${{ secrets.TSCIRCUIT_BOT_GITHUB_TOKEN }}
committer: tscircuitbot <githubbot@tscircuit.com>
author: tscircuitbot <githubbot@tscircuit.com>
- name: Enable auto-merge
if: steps.create-pr.outputs.pull-request-number != ''
run: |
gh pr merge ${{ steps.create-pr.outputs.pull-request-number }} --auto --squash --delete-branch
env:
GH_TOKEN: ${{ secrets.TSCIRCUIT_BOT_GITHUB_TOKEN }}