From d8216aefb62e726c185c90b21141ea84a0528d00 Mon Sep 17 00:00:00 2001 From: doprz <52579214+doprz@users.noreply.github.com> Date: Mon, 13 Oct 2025 13:48:00 -0500 Subject: [PATCH] feat(ci): add nix job --- .github/workflows/release.yml | 42 +++++++++++++++-------------------- 1 file changed, 18 insertions(+), 24 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 71535534..85c65749 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,25 +1,19 @@ -name: Create Release -on: - push: - branches: - - production - - preview -jobs: - build: - name: build extension & create release - runs-on: ubuntu-latest - concurrency: - group: ${{ github.ref }} - cancel-in-progress: true - steps: - - uses: actions/checkout@master - - name: Get file permission - run: chmod -R 777 . +name: Release - - name: Install dependencies - run: npm ci - - name: Release with semantic-release - id: semantic-release - run: npx --no-install semantic-release - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} +on: + pull_request: + push: + branches: + - main + +concurrency: ${{ github.workflow }}-${{ github.ref }} + +jobs: + nix-check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v5 + - uses: cachix/install-nix-action@v31 + with: + github_access_token: ${{ secrets.GITHUB_TOKEN }} + - run: nix flake check \ No newline at end of file