From c7040b36fe897d56a30ffa97fea612d364fe1753 Mon Sep 17 00:00:00 2001 From: MARCROCK22 <57925328+MARCROCK22@users.noreply.github.com> Date: Tue, 9 Apr 2024 14:50:45 -0400 Subject: [PATCH] fix: github action --- .changeset/config.json | 16 ++++++++++++++++ .github/workflows/publish.yml | 36 +++++++++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 .changeset/config.json create mode 100644 .github/workflows/publish.yml diff --git a/.changeset/config.json b/.changeset/config.json new file mode 100644 index 0000000..e888473 --- /dev/null +++ b/.changeset/config.json @@ -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": [] +} \ No newline at end of file diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..d6a6dc0 --- /dev/null +++ b/.github/workflows/publish.yml @@ -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"