From 63ea35e582bb883ccb8300e72c81a5e47f5e65ad Mon Sep 17 00:00:00 2001 From: Pavel Sanchez <23495830+PaleBluDot@users.noreply.github.com> Date: Wed, 13 Sep 2023 14:11:37 -0400 Subject: [PATCH] build(config): add dry run step --- .github/workflows/production.yml | 55 ++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) diff --git a/.github/workflows/production.yml b/.github/workflows/production.yml index 6f787bb..2559502 100644 --- a/.github/workflows/production.yml +++ b/.github/workflows/production.yml @@ -83,3 +83,58 @@ jobs: GIT_AUTHOR_EMAIL: ${{ secrets.GIT_AUTHOR_EMAIL }} GIT_COMMITTER_NAME: ${{ secrets.GIT_COMMITTER_NAME }} GIT_COMMITTER_EMAIL: ${{ secrets.GIT_COMMITTER_EMAIL }} + + Dry: + name: 🚀 Dry Run 🚀 + runs-on: ${{ matrix.os }} + strategy: + matrix: + node: [18] + os: [ubuntu-latest] + if: ${{ github.ref == 'refs/heads/pavel/workflow' }} + needs: [Test] + steps: + - name: ⎔ Setup node ${{ matrix.node }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node }} + + - name: 📥 Download deps + uses: bahmutov/npm-install@v1 + with: + useLockFile: false + env: + HUSKY_SKIP_INSTALL: true + + - name: 🏗 Build + run: npm run build + + - name: 🚨 Format + run: npm run format + + - name: 🚀 Release Dry Run + uses: cycjimmy/semantic-release-action@v3 + id: semantic + with: + semantic_version: 18 + dry_run: true + ci: false + extra_plugins: | + @semantic-release/changelog + @semantic-release/git + @semantic-release/github + branches: | + [ + 'main', + 'next', + 'next-major', + {name: 'beta', prerelease: true}, + {name: 'alpha', prerelease: true} + ] + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + GH_TOKEN: ${{ secrets.GH_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GIT_AUTHOR_NAME: ${{ secrets.GIT_AUTHOR_NAME }} + GIT_AUTHOR_EMAIL: ${{ secrets.GIT_AUTHOR_EMAIL }} + GIT_COMMITTER_NAME: ${{ secrets.GIT_COMMITTER_NAME }} + GIT_COMMITTER_EMAIL: ${{ secrets.GIT_COMMITTER_EMAIL }}