Skip to content

Commit

Permalink
allow dry run
Browse files Browse the repository at this point in the history
  • Loading branch information
Autoparallel authored and lonerapier committed Oct 29, 2024
1 parent c94258d commit a7a656a
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,19 +1,48 @@
# .github/workflows/release.yml
name: Release

on:
push:
branches:
- main
pull_request:
branches:
- main

permissions:
contents: write
pull-requests: write
issues: write

jobs:
verify:
name: Verify semantic release
runs-on: ubuntu-latest
if: github.event_name == 'pull_request'
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: npm ci

- name: Verify semantic release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
npx semantic-release --dry-run
release:
name: Release
runs-on: ubuntu-latest
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down

0 comments on commit a7a656a

Please sign in to comment.