From 0b8489085a970fb77fa8348e4890421dd166bf40 Mon Sep 17 00:00:00 2001 From: Huw Wilkins Date: Thu, 29 Aug 2024 09:46:06 +1000 Subject: [PATCH] ci: add release preview action --- .github/workflows/release-preview.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/release-preview.yml diff --git a/.github/workflows/release-preview.yml b/.github/workflows/release-preview.yml new file mode 100644 index 00000000..952d86d3 --- /dev/null +++ b/.github/workflows/release-preview.yml @@ -0,0 +1,21 @@ +name: Preview release +on: + pull_request: + branches: + - main + +jobs: + release: + name: Preview release + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: "lts/*" + - name: Preview release + run: npx semantic-release --dry-run