fix: github action

This commit is contained in:
MARCROCK22 2024-04-09 14:50:45 -04:00
parent 33165faf95
commit c7040b36fe
2 changed files with 52 additions and 0 deletions

16
.changeset/config.json Normal file
View File

@ -0,0 +1,16 @@
{
"$schema": "https://unpkg.com/@changesets/config@2.3.1/schema.json",
"changelog": [
"@changesets/changelog-github",
{
"repo": "tiramisulabs/seyfert"
}
],
"commit": false,
"fixed": [],
"linked": [],
"access": "restricted",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
}

36
.github/workflows/publish.yml vendored Normal file
View File

@ -0,0 +1,36 @@
name: Publish
on:
push:
branches:
- build
jobs:
build:
name: Publish
runs-on: ubuntu-latest
steps:
- name: check out code
uses: actions/checkout@v4
- name: Install Bun
uses: oven-sh/setup-bun@v1
- name: Install dependencies
run: bun install
- name: Add npm
run: bun add npm
- name: Build package
run: bun run build
- name: Create Release Pull Request
uses: changesets/action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
with:
commit: "chore: release packages"
publish: bunx npm publish
title: "chore: release packages"