Skip to content

Commit

Permalink
build(config): add dry run step
Browse files Browse the repository at this point in the history
  • Loading branch information
PaleBluDot committed Sep 13, 2023
1 parent ab73e23 commit 63ea35e
Showing 1 changed file with 55 additions and 0 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit 63ea35e

Please sign in to comment.