Skip to content

Merge pull request #111 from maxcanna/dependabot/npm_and_yarn/express… #54

Merge pull request #111 from maxcanna/dependabot/npm_and_yarn/express…

Merge pull request #111 from maxcanna/dependabot/npm_and_yarn/express… #54

Workflow file for this run

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 }}