From b199f27889ef69efa2b90a1796464b4576120910 Mon Sep 17 00:00:00 2001 From: KryptXBSA Date: Mon, 2 Dec 2024 11:34:05 +0300 Subject: [PATCH] add release workflow --- .github/workflows/release.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 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..881dea5 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,35 @@ +name: Release + +on: + push: + branches: + - dev + +concurrency: ${{ github.workflow }}-${{ github.ref }} + +jobs: + release: + name: Release + runs-on: ubuntu-latest + steps: + - name: Checkout Repo + uses: actions/checkout@v3 + + - name: Setup bun + uses: oven-sh/setup-bun@v1 + with: + node-version: 20 + + - name: Install Dependencies + run: bun install + + - name: Run tests + run: bun test + + - name: Create Release Pull Request + uses: changesets/action@v1 + with: + publish: bun run release + env: + GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} \ No newline at end of file