From 21ad53f3ab382ba73966783543246ecc4f3fa3be Mon Sep 17 00:00:00 2001 From: Timo Bechtel Date: Sun, 12 Nov 2023 18:50:50 +0100 Subject: [PATCH] build: add release workflow --- .github/workflows/release.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..56c2d7e --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,25 @@ +name: Release + +on: + push: + branches: + - main + +jobs: + release: + name: Release + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + + - uses: oven-sh/setup-bun@v1 + + - name: Install dependencies + run: bun install + + - name: Publish + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + run: bunx semantic-release