From 2562a93d9fe84b3a78977b2affd5c140f859f2d1 Mon Sep 17 00:00:00 2001 From: renejfc Date: Fri, 21 Feb 2025 15:31:10 +0100 Subject: [PATCH] ci: add preview package workflow --- .github/workflows/preview.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/preview.yml diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml new file mode 100644 index 00000000..e9120b02 --- /dev/null +++ b/.github/workflows/preview.yml @@ -0,0 +1,26 @@ +name: Package Preview +on: + pull_request: + push: + branches-ignore: + - 'main' + tags: + - '!**' # excludes all tags +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup node + uses: actions/setup-node@v4 + + - name: Install deps + run: npm install + + - name: Build package + run: npm run build + + - name: Publish preview + run: npx pkg-pr-new publish --compact --comment=update