From c928a82697bb02acbe9bdc64a8ade4f47b26a939 Mon Sep 17 00:00:00 2001 From: Salvatore Merone Date: Sat, 21 Sep 2024 18:02:10 +0200 Subject: [PATCH] ci: add dist.zip artifact for releases --- .github/workflows/pr-checks.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pr-checks.yml b/.github/workflows/pr-checks.yml index f4cbc3e..a9d6b89 100644 --- a/.github/workflows/pr-checks.yml +++ b/.github/workflows/pr-checks.yml @@ -1,4 +1,4 @@ -name: PR Checks +name: PR Checks and Build on: push: @@ -23,3 +23,10 @@ jobs: - run: npm ci - run: npm run build - run: npm run gen-schemas + - if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} + run: npm run pack + - if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} + uses: actions/upload-artifact@v4 + with: + name: dist zip + path: dist.zip