Skip to content

Validate changelog during CI #79

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
May 25, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .github/workflows/build-lint-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,28 @@ jobs:
- run: yarn build
- run: yarn lint
- run: yarn test
validate-changelog:
name: Validate changelog
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Use Node.js v12
uses: actions/setup-node@v1
with:
node-version: 12
- run: yarn --frozen-lockfile
- run: yarn build
- name: Validate RC changelog
if: ${{ startsWith(github.ref, 'release-v') }}
run: yarn changelog validate --rc
- name: Validate changelog
if: ${{ !startsWith(github.ref, 'release-v') }}
run: yarn changelog validate
all-jobs-pass:
name: All jobs pass
runs-on: ubuntu-20.04
needs:
- build-lint-test
- validate-changelog
steps:
- run: echo "Great success!"