Skip to content

Commit

Permalink
refactor: Misc changes to make new build work
Browse files Browse the repository at this point in the history
  • Loading branch information
TriPSs committed Dec 28, 2023
1 parent 97da0e7 commit 7c46413
Show file tree
Hide file tree
Showing 13 changed files with 646 additions and 55 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,13 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2

- run: npm ci --prod
- run: git add node_modules -f
- name: Install deps
run: npm ci

- name: Build
run: npm run build

- run: git add dist -f

- name: Generate changelog
id: changelog
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,5 @@ typings/

# build output
lib

node_modules
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ If you'd like to contribute to this project, all you need to do is clone and ins
> Note: The image used is 18 gb!
```shell
$ yarn install
$ npm install

# To run / test one specific job
$ act -j <workflow job name> -P ubuntu-latest=catthehacker/ubuntu:full-20.04 --quiet
Expand Down
15 changes: 11 additions & 4 deletions dist/commit.hbs
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
* {{header}}
*{{#if scope}} **{{scope}}:**
{{~/if}} {{#if subject}}
{{~subject}}
{{~else}}
{{~header}}
{{~/if}}

{{~!-- commit link --}}
{{~#if @root.linkReferences}} ([{{hash}}](
{{~!-- commit link --}} {{#if @root.linkReferences~}}
([{{shortHash}}](
{{~#if @root.repository}}
{{~#if @root.host}}
{{~@root.host}}/
Expand All @@ -14,7 +19,9 @@
{{~@root.repoUrl}}
{{~/if}}/
{{~@root.commit}}/{{hash}}))
{{~else if hash}} {{hash}}{{~/if}}
{{~else}}
{{~shortHash}}
{{~/if}}

{{~!-- commit references --}}
{{~#if references~}}
Expand Down
54 changes: 54 additions & 0 deletions dist/commit1.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
* {{header}}

{{~!-- commit link --}}
{{~#if @root.linkReferences}} ([{{hash}}](
{{~#if @root.repository}}
{{~#if @root.host}}
{{~@root.host}}/
{{~/if}}
{{~#if @root.owner}}
{{~@root.owner}}/
{{~/if}}
{{~@root.repository}}
{{~else}}
{{~@root.repoUrl}}
{{~/if}}/
{{~@root.commit}}/{{hash}}))
{{~else if hash}} {{hash}}{{~/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}}
{{~@root.host}}/
{{~/if}}
{{~#if this.repository}}
{{~#if this.owner}}
{{~this.owner}}/
{{~/if}}
{{~this.repository}}
{{~else}}
{{~#if @root.owner}}
{{~@root.owner}}/
{{~/if}}
{{~@root.repository}}
{{~/if}}
{{~else}}
{{~@root.repoUrl}}
{{~/if}}/
{{~@root.issue}}/{{this.issue}})
{{~else}}
{{~#if this.owner}}
{{~this.owner}}/
{{~/if}}
{{~this.repository}}#{{this.issue}}
{{~/if}}{{/each}}
{{~/if}}

3 changes: 2 additions & 1 deletion dist/footer.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
### {{title}}

{{#each notes}}
* {{text}}
* {{#if commit.scope}}**{{commit.scope}}:** {{/if}}{{text}}
{{/each}}
{{/each}}

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

### {{title}}

{{#each notes}}
* {{text}}
{{/each}}
{{/each}}
{{/if}}
32 changes: 24 additions & 8 deletions dist/header.hbs
Original file line number Diff line number Diff line change
@@ -1,9 +1,25 @@
## {{#if isPatch~}} <small>
{{~/if~}} {{version}}
{{~#if title}} "{{title}}"
{{#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~}}
{{~#if date}} ({{date}})
{{~/if~}}
{{~#if isPatch~}} </small>
{{~/if}}

/compare/{{previousTag}}...{{currentTag}})
{{~else}}
{{~version}}
{{~/if}}
{{~#if title}} "{{title}}"
{{~/if}}
{{~#if date}} ({{date}})
{{/if}}
9 changes: 9 additions & 0 deletions dist/header1.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
## {{#if isPatch~}} <small>
{{~/if~}} {{version}}
{{~#if title}} "{{title}}"
{{~/if~}}
{{~#if date}} ({{date}})
{{~/if~}}
{{~#if isPatch~}} </small>
{{~/if}}

0 comments on commit 7c46413

Please sign in to comment.