Skip to content

Commit

Permalink
ci(build-and-release): changelog preview without environment
Browse files Browse the repository at this point in the history
  • Loading branch information
enisdenjo committed Feb 17, 2023
1 parent 050080f commit 972ed07
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/build-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,33 +26,33 @@ jobs:
lib
umd
dry-run:
name: Dry run
changelog:
name: Changelog
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
fetch-depth: 0 # necessary for correct changelog
- 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
- name: Changelog
run: |
yarn semantic-release \
-p @semantic-release/release-notes-generator \
--dry-run \
| tee changelog.out
sed -n '/#/,$p' changelog.out >> $GITHUB_STEP_SUMMARY
release:
name: Release
runs-on: ubuntu-latest
needs: [build, dry-run]
needs: [build, changelog]
environment: npm
steps:
- name: Checkout
Expand Down

0 comments on commit 972ed07

Please sign in to comment.