Skip to content

Commit

Permalink
Creates Release v2.0.1 (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
dangoslen authored Feb 20, 2021
1 parent 48475fe commit 1ebd44c
Show file tree
Hide file tree
Showing 7 changed files with 257 additions and 169 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ jobs:
- uses: actions/checkout@v1
- id: read-version
run: |
echo "::set-output name=version::$(cat VERSION)"
echo "::set-output name=version::$(jq -r ".version" package.json)"
- id: changelog-enforcer
uses: ./
with:
expectedLatestVersion: ${{ steps.read-version.outputs.version }}
expectedLatestVersion: "v${{ steps.read-version.outputs.version }}"
- if: failure()
uses: unsplash/comment-on-pr@master
env:
Expand Down Expand Up @@ -59,13 +59,13 @@ jobs:
- name: Read version
id: read_version
run: |
echo ::set-output name=version::$(cat VERSION)
echo ::set-output name=version::$(jq -r ".version" package.json)
shell: bash
- name: Get Changelog Entry
id: changelog_reader
uses: mindsers/changelog-reader-action@v2
with:
version: ${{ steps.read_version.outputs.version }}
version: "v${{ steps.read_version.outputs.version }}"
path: ./CHANGELOG.md
- name: Check for Release
id: check_release
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: "Release Workflow"
on:
push:
branches:
- 'releases/v1.6'
- 'master'

jobs:
Expand All @@ -13,14 +14,14 @@ jobs:
- name: Read versions
id: read_version
run: |
echo ::set-output name=version::$(cat VERSION)
echo ::set-output name=major_tag::$(cat VERSION | cut -d '.' -f 1)
echo ::set-output name=version::$(jq -r ".version" package.json)
echo ::set-output name=major_tag::$(jq -r ".version" package.json | cut -d '.' -f 1)
shell: bash
- name: Get Changelog Entry
id: changelog_reader
uses: mindsers/changelog-reader-action@v2
with:
version: ${{ steps.read_version.outputs.version }}
version: "v${{ steps.read_version.outputs.version }}"
path: ./CHANGELOG.md
- name: Check for Release
id: check_release
Expand All @@ -36,14 +37,14 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.read_version.outputs.version }}
tag_name: "v${{ steps.read_version.outputs.version }}"
release_name: Changelog Enforcer ${{ steps.read_version.outputs.version }}
body: ${{ steps.changelog_reader.outputs.changes }}
draft: false
prerelease: false
- name: Update Major Version Tag
uses: richardsimko/update-tag@v1
with:
tag_name: ${{ steps.read_version.outputs.major_tag }}
tag_name: "v${{ steps.read_version.outputs.major_tag }}"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@

Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)

## [v2.0.1]
### Dependencies
- Bump eslint from 7.17.0 to 7.20.0.
- Bump @vercel/ncc from 0.26.1 to 0.27.0

### Changed
- Now reads the version from `package.json` instead of from `VERSION`

## [v2.0.0]
### Added
- Feature request from #62
Expand Down
Loading

0 comments on commit 1ebd44c

Please sign in to comment.