diff --git a/.github/workflows/release-preview.yml b/.github/workflows/release-preview.yml new file mode 100644 index 00000000..fc5b8133 --- /dev/null +++ b/.github/workflows/release-preview.yml @@ -0,0 +1,25 @@ +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: Install dependencies + run: yarn install + - name: Preview release + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: npx semantic-release --dry-run --no-ci --branches "*"