From 6142fcccf388a826d76645e39625968885357fb3 Mon Sep 17 00:00:00 2001 From: Lawrence <34475808+acodeninja@users.noreply.github.com> Date: Mon, 9 Sep 2024 12:44:27 +0100 Subject: [PATCH] feat: dry run releases (#8) --- .github/workflows/publish-release.yml | 4 ++-- .github/workflows/quality-checks.yml | 19 +++++++++++++++++++ 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index da0583d..4eabedd 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -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 @@ -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 }} diff --git a/.github/workflows/quality-checks.yml b/.github/workflows/quality-checks.yml index fbf6193..9cc3db1 100644 --- a/.github/workflows/quality-checks.yml +++ b/.github/workflows/quality-checks.yml @@ -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 }}