Skip to content

Commit

Permalink
build!: configure strategy release by release name
Browse files Browse the repository at this point in the history
  • Loading branch information
JonDotsoy committed Oct 28, 2023
1 parent 88bebeb commit c1d620c
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 3 deletions.
22 changes: 19 additions & 3 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ on:
push:
branches:
- development
- release/*

permissions:
contents: write
Expand All @@ -13,9 +14,24 @@ jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: gh pr view --json labels
env:
GH_TOKEN: ${{ github.token }}
- id: setup
env:
SCRIPT: |
const e = /^release\/(?<name>\w+)/;
const groups = e.exec(process.env.GITHUB_REF_NAME)?.groups
const releaseName = groups?.name ?? "latest";
console.log(`RELEASE_NAME=${releaseName}`);
console.log(`PRERELEASE=${releaseName==="latest"?'true':'false'}`);
run: node -e "$SCRIPT" >> $GITHUB_OUTPUT
- uses: google-github-actions/release-please-action@v3
with:
release-type: node
package-name: release-please-action
version-file: version

prerelease: ${{ steps.setup.outputs.PRERELEASE }}
monorepo-tags: true
package-name: ${{ steps.setup.outputs.RELEASE_NAME }}
default-branch: ${{ github.ref_name }}

43 changes: 43 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,48 @@
# Changelog

## 0.4.1 (2023-07-28)


### Features

* add execution header on ndate ([4b1ba2f](https://github.com/JonDotsoy/ndate/commit/4b1ba2fa5f22330f264046f046aacec40ebc531c))
* Add flag --epoch, --epoch-ms and --time-zone ([c49ceac](https://github.com/JonDotsoy/ndate/commit/c49ceace5cb14d9c2ea3f836dc73d7c31d88a738))
* add flag `--template` ([29fa11e](https://github.com/JonDotsoy/ndate/commit/29fa11e014e11bfd2f4e890906c6834fad47d127))
* add new flags to the template ([b85b5c9](https://github.com/JonDotsoy/ndate/commit/b85b5c9e7b43f6dab427912a578e006b4f98ae99))
* configure executable script ([c6e5ae1](https://github.com/JonDotsoy/ndate/commit/c6e5ae12ce7d8debc762f721f0749658710104d8))
* configure makefile ([16b82d6](https://github.com/JonDotsoy/ndate/commit/16b82d68742102abc7ebde87ccc6483190ad953d))
* configure maker file ([f038a8e](https://github.com/JonDotsoy/ndate/commit/f038a8e515c7f2d6720200dfad33557444bc8a5f))
* configure utc flag ([42e3ade](https://github.com/JonDotsoy/ndate/commit/42e3adece8f984f4e8423338aef625b9c186bb34))
* initial commit ([c52bd93](https://github.com/JonDotsoy/ndate/commit/c52bd93256a4124e7399204ff67a9c0145d5f578))
* initialize version ([d59c863](https://github.com/JonDotsoy/ndate/commit/d59c86395e428ee0b072877943ae7036581593dd))
* upgrade logs ([73e179b](https://github.com/JonDotsoy/ndate/commit/73e179bf7b74856f1081608932008c416118804f))
* upgrade template and permisions ([c9e767a](https://github.com/JonDotsoy/ndate/commit/c9e767ae35860b8b001f22337f7e997701995afe))


### Bug Fixes

* alias template to Hour, Minute, Second and Millisecond. ([b7a87d7](https://github.com/JonDotsoy/ndate/commit/b7a87d7118f86b1467df3a472f9746a3d4ea655f))
* fix the padding start of the `{{ms}}` flag with a length of 3 ([a1733cf](https://github.com/JonDotsoy/ndate/commit/a1733cf52e99c8e5972f4244f651545d9047852e))
* upgrade values to and ([8896c75](https://github.com/JonDotsoy/ndate/commit/8896c75ff36e52e315c75d5d89e0fa62f6a3eb5e))


### Miscellaneous Chores

* release 0.4.0-alpha ([aa3ae3a](https://github.com/JonDotsoy/ndate/commit/aa3ae3ad025f5b1d4a11c70b395b9c3322d633e5))
* release 0.4.1 ([62ce875](https://github.com/JonDotsoy/ndate/commit/62ce8751302743165ad484202cc33e42656c3dd7))

## [0.4.0-alpha](https://github.com/JonDotsoy/ndate/compare/v0.3.0...v0.4.0-alpha) (2023-07-28)


### Features

* configure makefile ([16b82d6](https://github.com/JonDotsoy/ndate/commit/16b82d68742102abc7ebde87ccc6483190ad953d))


### Miscellaneous Chores

* release 0.4.0-alpha ([aa3ae3a](https://github.com/JonDotsoy/ndate/commit/aa3ae3ad025f5b1d4a11c70b395b9c3322d633e5))

## [0.3.0](https://github.com/JonDotsoy/ndate/compare/v0.2.9...v0.3.0) (2023-07-22)


Expand Down

0 comments on commit c1d620c

Please sign in to comment.