Merge pull request #148 from maxcanna/dependabot/npm_and_yarn/ws-6.2.3 #81
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Set env vars | |
run: | | |
echo VERSION_NUMBER=$(jq -r < package.json .version) >> $GITHUB_ENV | |
echo 'RELEASE_NOTES<<EOF' >> $GITHUB_ENV | |
git log --no-merges --format='- %s' $(git log --merges --format='%H' -n 2)..HEAD -- >> $GITHUB_ENV | |
echo 'EOF' >> $GITHUB_ENV | |
- name: Create release | |
uses: actions/create-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: ${{ env.VERSION_NUMBER }} | |
release_name: ${{ env.VERSION_NUMBER }} | |
body: ${{ env.RELEASE_NOTES }} |