Skip to content

Commit

Permalink
feat: dry run releases (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
acodeninja authored Sep 9, 2024
1 parent 1227ff0 commit 6142fcc
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
- completed

jobs:
draft-release:
publish-release:
name: 📋 publish release
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
Expand All @@ -27,7 +27,7 @@ jobs:
fetch-depth: 0
- uses: asdf-vm/actions/install@v3
- run: npm clean-install
- run: npx semantic-release --dry-run
- run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
19 changes: 19 additions & 0 deletions .github/workflows/quality-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,22 @@ jobs:
- uses: asdf-vm/actions/install@v3
- run: make init
- run: make test/coverage

dry-run-release:
name: 📋 dry run release
runs-on: ubuntu-latest
permissions:
contents: write
issues: write
pull-requests: write
id-token: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: asdf-vm/actions/install@v3
- run: npm clean-install
- run: npx semantic-release --dry-run
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 6142fcc

Please sign in to comment.