Skip to content

Commit bef32bd

Browse files
committed
ci(build-and-release): dry run step preview
1 parent 7c49e27 commit bef32bd

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

.github/workflows/build-and-release.yml

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,33 @@ jobs:
2626
lib
2727
umd
2828
29+
dry-run:
30+
name: Dry run
31+
runs-on: ubuntu-latest
32+
environment: npm
33+
steps:
34+
- name: Checkout
35+
uses: actions/checkout@v3
36+
with:
37+
token: ${{ secrets.GH_TOKEN }}
38+
fetch-depth: 0 # necessary for correct CHANGELOGS
39+
- name: Set up node
40+
uses: actions/setup-node@v3
41+
with:
42+
node-version: 18
43+
cache: yarn
44+
- name: Install
45+
run: yarn install --immutable
46+
- name: Dry run release
47+
env:
48+
GH_TOKEN: ${{ secrets.GH_TOKEN }}
49+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
50+
run: yarn release --dry-run >> $GITHUB_STEP_SUMMARY
51+
2952
release:
3053
name: Release
3154
runs-on: ubuntu-latest
32-
needs: [build]
55+
needs: [build, dry-run]
3356
environment: npm
3457
steps:
3558
- name: Checkout

0 commit comments

Comments
 (0)