Skip to content

Commit

Permalink
Merge pull request #44 from pxblue/dev
Browse files Browse the repository at this point in the history
v1.0.3 `@brightlayer-ui/tag`
  • Loading branch information
EvanMcLaughlin-eaton authored Oct 15, 2021
2 parents aa2b0df + 34fcefd commit 4f9ff32
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:
- run:
name: Tag @brightlayer-ui/publish
command: |
cd blui-publish && yarn tag:package -b $CIRCLE_BRANCH
cd blui-publish && yarn tag:package -b $CIRCLE_BRANCH -s blui-publish
tag_blui_tag:
docker:
Expand All @@ -75,7 +75,7 @@ jobs:
- run:
name: Tag @brightlayer-ui/tag
command: |
cd blui-tag && yarn tag:package -b $CIRCLE_BRANCH
cd blui-tag && yarn tag:package -b $CIRCLE_BRANCH -s blui-tag
workflows:
version: 2
Expand Down
6 changes: 6 additions & 0 deletions blui-tag/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## v1.0.3 (October 15, 2021)

### Fixed

- Fixed bug in the `parse-changelog` script where it would create Github releases using older patch notes when resolving duplicate versions.

## v1.0.2 (October 14, 2021)

### Changed
Expand Down
2 changes: 1 addition & 1 deletion blui-tag/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@brightlayer-ui/tag",
"description": "A script that can be used to automatically tag packages in a continuous integration pipeline.",
"version": "1.0.2",
"version": "1.0.3",
"author": "Brightlayer UI <brightlayer-ui@eaton.com> (https://github.com/brightlayer-ui)",
"license": "BSD-3-Clause",
"repository": {
Expand Down
6 changes: 6 additions & 0 deletions blui-tag/scripts/parse-changelog.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ fs.readFile('CHANGELOG.md', 'utf8', (err, data) => {
for (const release of releases) {
console.log(release);
console.log(VERSION);

// Once the most-recent occurrence of a version is found, skip next steps.
if (found) {
continue;
}

if (release.includes(VERSION)) {
found = true;
fs.writeFile('TAG_CHANGELOG.md', `## v${release}`, (err) => {
Expand Down

0 comments on commit 4f9ff32

Please sign in to comment.