Skip to content

Commit

Permalink
ci(build-and-release): dry run step preview
Browse files Browse the repository at this point in the history
  • Loading branch information
enisdenjo committed Dec 23, 2022
1 parent e8ca40f commit 48e7bd9
Showing 1 changed file with 25 additions and 2 deletions.
27 changes: 25 additions & 2 deletions .github/workflows/build-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,33 @@ jobs:
lib
umd
dry-run:
name: Dry run
runs-on: ubuntu-latest
environment: npm
steps:
- name: Checkout
uses: actions/checkout@v3
with:
token: ${{ secrets.GH_TOKEN }}
fetch-depth: 0 # necessary for correct CHANGELOGS
- name: Set up node
uses: actions/setup-node@v3
with:
node-version: 18
cache: yarn
- name: Install
run: yarn install --immutable
- name: Dry run release
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: yarn release --dry-run >> $GITHUB_STEP_SUMMARY

release:
name: Release
runs-on: ubuntu-latest
needs: [build]
needs: [build, dry-run]
environment: npm
steps:
- name: Checkout
Expand All @@ -38,7 +61,7 @@ jobs:
token: ${{ secrets.GH_TOKEN }}
fetch-depth: 0 # necessary for correct CHANGELOGS
- name: Set up node
uses: actions/setup-node@v
uses: actions/setup-node@v3
with:
node-version: 18
cache: yarn
Expand Down

0 comments on commit 48e7bd9

Please sign in to comment.