Skip to content

ci: add release automation #1810

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 25 commits into from
Sep 23, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
1270232
fixed incorrect row height (related to #1754)
mtrezza Aug 23, 2021
a0a9cf2
Merge remote-tracking branch 'upstream/master'
mtrezza Aug 23, 2021
22b1d79
Merge remote-tracking branch 'upstream/master'
mtrezza Aug 23, 2021
ad26d62
Merge remote-tracking branch 'upstream/master'
mtrezza Aug 23, 2021
0a3c86e
Merge remote-tracking branch 'upstream/master'
mtrezza Aug 24, 2021
c880f56
Merge remote-tracking branch 'upstream/master'
mtrezza Aug 27, 2021
e742442
Merge remote-tracking branch 'upstream/master'
mtrezza Aug 27, 2021
7f5737c
Merge remote-tracking branch 'upstream/master'
mtrezza Aug 27, 2021
a54a306
Merge remote-tracking branch 'upstream/master'
mtrezza Sep 2, 2021
5e660a8
Merge remote-tracking branch 'upstream/master'
mtrezza Sep 4, 2021
35d8486
Merge remote-tracking branch 'upstream/master'
mtrezza Sep 4, 2021
e452b1e
Merge remote-tracking branch 'upstream/master'
mtrezza Sep 7, 2021
3650a01
Merge remote-tracking branch 'upstream/master'
mtrezza Sep 7, 2021
2e2b461
Merge remote-tracking branch 'upstream/master'
mtrezza Sep 7, 2021
d11f618
Merge remote-tracking branch 'upstream/master'
mtrezza Sep 9, 2021
c5d86cc
Merge remote-tracking branch 'upstream/master'
mtrezza Sep 9, 2021
dcb2909
Merge remote-tracking branch 'upstream/master'
mtrezza Sep 10, 2021
233a63d
Merge remote-tracking branch 'upstream/master'
mtrezza Sep 10, 2021
7371d06
Merge remote-tracking branch 'upstream/master'
mtrezza Sep 16, 2021
f94bb4d
Merge remote-tracking branch 'upstream/master'
mtrezza Sep 23, 2021
af4610f
added semantic release
mtrezza Sep 23, 2021
4441c95
removed changelog check from ci
mtrezza Sep 23, 2021
6b01232
refactored changelogs
mtrezza Sep 23, 2021
444a09b
fix typo
mtrezza Sep 23, 2021
a808bd0
update branch triggers
mtrezza Sep 23, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,6 @@ jobs:
run: npm run ci:check
- name: CI Node Engine Check
run: npm run ci:checkNodeEngine
check-changelog:
name: Changelog
timeout-minutes: 5
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- uses: dangoslen/changelog-enforcer@v2
# check-lint:
# name: Lint
# timeout-minutes: 15
Expand Down
17 changes: 9 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
name: release
name: Release
on:
release:
types: [published]
push:
branches: [ master, alpha, beta, next-major ]
jobs:
publish-npm:
runs-on: ubuntu-18.04
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/setup-node@v2
with:
node-version: 12
registry-url: https://registry.npmjs.org/
Expand All @@ -19,6 +19,7 @@ jobs:
restore-keys: |
${{ runner.os }}-node-
- run: npm ci
- run: npm publish
- run: npx semantic-release
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
61 changes: 61 additions & 0 deletions .releaserc/commit.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
*{{#if scope}} **{{scope}}:**
{{~/if}} {{#if subject}}
{{~subject}}
{{~else}}
{{~header}}
{{~/if}}

{{~!-- commit link --}} {{#if @root.linkReferences~}}
([{{shortHash}}](
{{~#if @root.repository}}
{{~#if @root.host}}
{{[email protected]}}/
{{~/if}}
{{~#if @root.owner}}
{{[email protected]}}/
{{~/if}}
{{[email protected]}}
{{~else}}
{{[email protected]}}
{{~/if}}/
{{[email protected]}}/{{hash}}))
{{~else}}
{{~shortHash}}
{{~/if}}

{{~!-- commit references --}}
{{~#if references~}}
, closes
{{~#each references}} {{#if @root.linkReferences~}}
[
{{~#if this.owner}}
{{~this.owner}}/
{{~/if}}
{{~this.repository}}#{{this.issue}}](
{{~#if @root.repository}}
{{~#if @root.host}}
{{[email protected]}}/
{{~/if}}
{{~#if this.repository}}
{{~#if this.owner}}
{{~this.owner}}/
{{~/if}}
{{~this.repository}}
{{~else}}
{{~#if @root.owner}}
{{[email protected]}}/
{{~/if}}
{{[email protected]}}
{{~/if}}
{{~else}}
{{[email protected]}}
{{~/if}}/
{{[email protected]}}/{{this.issue}})
{{~else}}
{{~#if this.owner}}
{{~this.owner}}/
{{~/if}}
{{~this.repository}}#{{this.issue}}
{{~/if}}{{/each}}
{{~/if}}

11 changes: 11 additions & 0 deletions .releaserc/footer.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{{#if noteGroups}}
{{#each noteGroups}}

### {{title}}

{{#each notes}}
* {{#if commit.scope}}**{{commit.scope}}:** {{/if}}{{text}} ([{{commit.shortHash}}]({{commit.shortHash}}))
{{/each}}
{{/each}}

{{/if}}
25 changes: 25 additions & 0 deletions .releaserc/header.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{{#if isPatch~}}
##
{{~else~}}
#
{{~/if}} {{#if @root.linkCompare~}}
[{{version}}](
{{~#if @root.repository~}}
{{~#if @root.host}}
{{~@root.host}}/
{{~/if}}
{{~#if @root.owner}}
{{~@root.owner}}/
{{~/if}}
{{~@root.repository}}
{{~else}}
{{~@root.repoUrl}}
{{~/if~}}
/compare/{{previousTag}}...{{currentTag}})
{{~else}}
{{~version}}
{{~/if}}
{{~#if title}} "{{title}}"
{{~/if}}
{{~#if date}} ({{date}})
{{/if}}
14 changes: 14 additions & 0 deletions .releaserc/template.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{{> header}}

{{#each commitGroups}}

{{#if title}}
### {{title}}

{{/if}}
{{#each commits}}
{{> commit root=@root}}
{{/each}}
{{/each}}

{{> footer}}
404 changes: 35 additions & 369 deletions CHANGELOG.md

Large diffs are not rendered by default.

375 changes: 375 additions & 0 deletions changelogs/CHANGELOG_master.md

Large diffs are not rendered by default.

Loading