Skip to content

Commit

Permalink
correct full version changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonocasey committed Aug 12, 2021
1 parent aa37006 commit 427c0b9
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/github-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,17 @@ jobs:
- name: build
run: npm run build-prod

- name: Generate current release changelog
run: ./node_modules/.bin/conventional-changelog -p videojs -r 2 -o RELEASE-CHANGELOG.md

- name: Check if this is a pre-release
run: echo ::set-output name=IS_PRE_RELEASE::$(./node_modules/.bin/is-prerelease && echo "true" || echo "false")
run: echo ::set-output name=IS_PRE_RELEASE::$(npx is-prerelease && echo "true" || echo "false")
id: pre-release-check

- name: delete prerelease tags to build changelog
run: git tag -l | grep -vE '^v(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)$' | xargs git tag -d
if: ${{ steps.pre-release-check.outputs.IS_PRE_RELEASE == 'false' }}

- name: Generate current release changelog
run: npx conventional-changelog -p videojs -r 2 -o RELEASE-CHANGELOG.md

- name: get dashed package version for netlify
run: echo ::set-output name=VERSION::$(node -e "process.stdout.write(require('./package.json').version.split('.').join('-'))")
id: get-version
Expand Down

0 comments on commit 427c0b9

Please sign in to comment.