Skip to content

Commit

Permalink
ci: add release preview action
Browse files Browse the repository at this point in the history
  • Loading branch information
huwshimi committed Aug 29, 2024
1 parent e67ae33 commit c304be9
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/release-preview.yml
Original file line number Diff line number Diff line change
@@ -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 "${{ github.head_ref || github.ref_name }}"

0 comments on commit c304be9

Please sign in to comment.