Skip to content

Commit 6df0f48

Browse files
authored
build: merge beta
2 parents d11579d + 4595ef7 commit 6df0f48

File tree

12 files changed

+7974
-3997
lines changed

12 files changed

+7974
-3997
lines changed

.github/workflows/release.yml

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,25 @@
11
name: release
22
on:
3-
release:
4-
types: [published]
3+
push:
4+
branches: '*'
55
jobs:
6-
publish-npm:
7-
runs-on: ubuntu-18.04
6+
release:
7+
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/checkout@v2
10-
- uses: actions/setup-node@v1
11-
with:
12-
node-version: '10.14'
13-
registry-url: https://registry.npmjs.org/
14-
- name: Cache Node.js modules
15-
uses: actions/cache@v2
16-
with:
17-
path: ~/.npm
18-
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
19-
restore-keys: |
20-
${{ runner.os }}-node-
21-
- run: npm ci
22-
- run: npm publish
23-
env:
24-
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
9+
- uses: actions/checkout@v2
10+
- uses: actions/setup-node@v1
11+
with:
12+
node-version: 14
13+
registry-url: https://registry.npmjs.org/
14+
- name: Cache Node.js modules
15+
uses: actions/cache@v2
16+
with:
17+
path: ~/.npm
18+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
19+
restore-keys: |
20+
${{ runner.os }}-node-
21+
- run: npm ci
22+
- run: npx semantic-release
23+
env:
24+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.releaserc/commit.hbs

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
*{{#if scope}} **{{scope}}:**
2+
{{~/if}} {{#if subject}}
3+
{{~subject}}
4+
{{~else}}
5+
{{~header}}
6+
{{~/if}}
7+
8+
{{~!-- commit link --}} {{#if @root.linkReferences~}}
9+
([{{shortHash}}](
10+
{{~#if @root.repository}}
11+
{{~#if @root.host}}
12+
{{~@root.host}}/
13+
{{~/if}}
14+
{{~#if @root.owner}}
15+
{{~@root.owner}}/
16+
{{~/if}}
17+
{{~@root.repository}}
18+
{{~else}}
19+
{{~@root.repoUrl}}
20+
{{~/if}}/
21+
{{~@root.commit}}/{{hash}}))
22+
{{~else}}
23+
{{~shortHash}}
24+
{{~/if}}
25+
26+
{{~!-- commit references --}}
27+
{{~#if references~}}
28+
, closes
29+
{{~#each references}} {{#if @root.linkReferences~}}
30+
[
31+
{{~#if this.owner}}
32+
{{~this.owner}}/
33+
{{~/if}}
34+
{{~this.repository}}#{{this.issue}}](
35+
{{~#if @root.repository}}
36+
{{~#if @root.host}}
37+
{{~@root.host}}/
38+
{{~/if}}
39+
{{~#if this.repository}}
40+
{{~#if this.owner}}
41+
{{~this.owner}}/
42+
{{~/if}}
43+
{{~this.repository}}
44+
{{~else}}
45+
{{~#if @root.owner}}
46+
{{~@root.owner}}/
47+
{{~/if}}
48+
{{~@root.repository}}
49+
{{~/if}}
50+
{{~else}}
51+
{{~@root.repoUrl}}
52+
{{~/if}}/
53+
{{~@root.issue}}/{{this.issue}})
54+
{{~else}}
55+
{{~#if this.owner}}
56+
{{~this.owner}}/
57+
{{~/if}}
58+
{{~this.repository}}#{{this.issue}}
59+
{{~/if}}{{/each}}
60+
{{~/if}}
61+

.releaserc/footer.hbs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{{#if noteGroups}}
2+
{{#each noteGroups}}
3+
4+
### {{title}}
5+
6+
{{#each notes}}
7+
* {{#if commit.scope}}**{{commit.scope}}:** {{/if}}{{text}} ([{{commit.shortHash}}]({{commit.shortHash}}))
8+
{{/each}}
9+
{{/each}}
10+
11+
{{/if}}

.releaserc/header.hbs

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{{#if isPatch~}}
2+
##
3+
{{~else~}}
4+
#
5+
{{~/if}} {{#if @root.linkCompare~}}
6+
[{{version}}](
7+
{{~#if @root.repository~}}
8+
{{~#if @root.host}}
9+
{{~@root.host}}/
10+
{{~/if}}
11+
{{~#if @root.owner}}
12+
{{~@root.owner}}/
13+
{{~/if}}
14+
{{~@root.repository}}
15+
{{~else}}
16+
{{~@root.repoUrl}}
17+
{{~/if~}}
18+
/compare/{{previousTag}}...{{currentTag}})
19+
{{~else}}
20+
{{~version}}
21+
{{~/if}}
22+
{{~#if title}} "{{title}}"
23+
{{~/if}}
24+
{{~#if date}} ({{date}})
25+
{{/if}}

.releaserc/template.hbs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{{> header}}
2+
3+
{{#each commitGroups}}
4+
5+
{{#if title}}
6+
### {{title}}
7+
8+
{{/if}}
9+
{{#each commits}}
10+
{{> commit root=@root}}
11+
{{/each}}
12+
{{/each}}
13+
14+
{{> footer}}

CHANGELOG.md

Lines changed: 12 additions & 88 deletions
Original file line numberDiff line numberDiff line change
@@ -1,93 +1,17 @@
11
# Changelog
22

3-
Jump directly to a version:
3+
Changelogs are separated by distribution channel for better overview:
44

5-
| 2.x |
6-
|-----------------------------------|
7-
| [**2.0.0 (latest release)**](#200) |
5+
| Changelog | Branch | Stability | Purpose | NPM Channel |
6+
|----------------------------------|---------------------------|---------------|--------------|-------------|
7+
| [✅ Stable Releases][log_release] | [release][branch_release] | stable | production | @latest |
8+
| [⚠️ Beta Releases][log_beta] | [beta][branch_beta] | pretty stable | development | @beta |
9+
| [🔥 Alpha Releases][log_alpha] | [alpha][branch_alpha] | unstable | contribution | @alpha |
810

9-
<details>
10-
<summary>Older versions</summary>
1111

12-
| 1.x |
13-
|-----------------------------------|
14-
| [1.0.7](#107) |
15-
| [1.0.6](#106) |
16-
| [1.0.5](#105) |
17-
| [1.0.4](#104) |
18-
| [1.0.3](#103) |
19-
| [1.0.2](#102) |
20-
| [1.0.1](#101) |
21-
| [1.0.0](#100) |
22-
</details>
23-
24-
# Unreleased (Main Branch)
25-
[Full Changelog](https://github.com/mtrezza/parse-server-api-mail-adapter/compare/2.0.0...master)
26-
27-
### ⚠️ Breaking Changes
28-
*(none)*
29-
### 🚀 Notable Changes
30-
*(none)*
31-
### 🧬 Other Changes
32-
*(none)*
33-
34-
# 2.0.0
35-
[Full Changelog](https://github.com/mtrezza/parse-server-api-mail-adapter/compare/1.0.7...2.0.0)
36-
### ⚠️ Breaking Changes
37-
- Bumped Node.js version requirement to >=12 (Manuel Trezza) [#39](https://github.com/mtrezza/parse-server-api-mail-adapter/pull/39)
38-
### 🧬 Other Changes
39-
- Fixed demo script and README for `mailgun.js` 3.x which requires `form-data` (Stefan Trauth, Manuel Trezza) [#32](https://github.com/mtrezza/parse-server-api-mail-adapter/pull/32)
40-
41-
# 1.0.7
42-
[Full Changelog](https://github.com/mtrezza/parse-server-api-mail-adapter/compare/1.0.6...1.0.7)
43-
44-
### 🧬 Other Changes
45-
- Added supported providers to README (Manuel Trezza) [#34](https://github.com/mtrezza/parse-server-api-mail-adapter/pull/34)
46-
- Bump postcss from 8.2.9 to 8.2.15 (dependabot) [#37](https://github.com/mtrezza/parse-server-api-mail-adapter/pull/37)
47-
48-
# 1.0.6
49-
[Full Changelog](https://github.com/mtrezza/parse-server-api-mail-adapter/compare/1.0.5...1.0.6)
50-
51-
### 🧬 Other Changes
52-
- Fixes failing to send email in Cloud Code without template (Manuel Trezza) [#26](https://github.com/mtrezza/parse-server-api-mail-adapter/pull/26)
53-
54-
# 1.0.5
55-
[Full Changelog](https://github.com/mtrezza/parse-server-api-mail-adapter/compare/1.0.4...1.0.5)
56-
57-
### 🧬 Other Changes
58-
- Fixes undefined `user` in `localeCallback` when sending email via `Parse.Cloud.sendEmail()` (wlky, Manuel Trezza) [#18](https://github.com/mtrezza/parse-server-api-mail-adapter/pull/18)
59-
60-
# 1.0.4
61-
[Full Changelog](https://github.com/mtrezza/parse-server-api-mail-adapter/compare/1.0.3...1.0.4)
62-
63-
### 🐛 Fixes
64-
- Fixed failing Parse Server adapter controller validation. [#13](https://github.com/mtrezza/parse-server-api-mail-adapter/pull/13). Thanks to [mtrezza](https://github.com/mtrezza).
65-
66-
### 🧬 Improvements
67-
- Added lint to CI workflow. [#14](https://github.com/mtrezza/parse-server-api-mail-adapter/pull/14). Thanks to [mtrezza](https://github.com/mtrezza).
68-
69-
# 1.0.3
70-
[Full Changelog](https://github.com/mtrezza/parse-server-api-mail-adapter/compare/1.0.2...1.0.3)
71-
72-
### 🐛 Fixes
73-
- Added missing release script invocation when publishing package to npm. [#11](https://github.com/mtrezza/parse-server-api-mail-adapter/pull/11). Thanks to [mtrezza](https://github.com/mtrezza).
74-
75-
# 1.0.2
76-
[Full Changelog](https://github.com/mtrezza/parse-server-api-mail-adapter/compare/1.0.1...1.0.2)
77-
78-
### 🧬 Improvements
79-
- Added locale to placeholder callback. [#6](https://github.com/mtrezza/parse-server-api-mail-adapter/pull/6). Thanks to [mtrezza](https://github.com/mtrezza).
80-
- Added current placeholders to placeholder callback. [#7](https://github.com/mtrezza/parse-server-api-mail-adapter/pull/7). Thanks to [mtrezza](https://github.com/mtrezza).
81-
82-
# 1.0.1
83-
[Full Changelog](https://github.com/mtrezza/parse-server-api-mail-adapter/compare/1.0.0...1.0.1)
84-
85-
### 🐛 Fixes
86-
- Removed unused config parameter from docs. [#1](https://github.com/mtrezza/parse-server-api-mail-adapter/pull/1). Thanks to [mtrezza](https://github.com/mtrezza).
87-
88-
### 🧬 Improvements
89-
- ⚠️ Added locale to API callback. This is a breaking change because the `apiCallback` now returns an object `{payload, locale}` instead of only the `payload`. [#2](https://github.com/mtrezza/parse-server-api-mail-adapter/pull/2). Thanks to [mtrezza](https://github.com/mtrezza)
90-
- Added badges to readme. [#3](https://github.com/mtrezza/parse-server-api-mail-adapter/pull/3). Thanks to [mtrezza](https://github.com/mtrezza)
91-
92-
# 1.0.0
93-
- Initial commit.
12+
[log_release]: https://github.com/mtrezza/parse-server-api-mail-adapter/blob/release/changelogs/CHANGELOG_release.md
13+
[log_beta]: https://github.com/mtrezza/parse-server-api-mail-adapter/blob/beta/changelogs/CHANGELOG_beta.md
14+
[log_alpha]: https://github.com/mtrezza/parse-server-api-mail-adapter/blob/alpha/changelogs/CHANGELOG_alpha.md
15+
[branch_release]: https://github.com/mtrezza/parse-server-api-mail-adapter/tree/release
16+
[branch_beta]: https://github.com/mtrezza/parse-server-api-mail-adapter/tree/beta
17+
[branch_alpha]: https://github.com/mtrezza/parse-server-api-mail-adapter/tree/alpha

changelogs/CHANGELOG_alpha.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# [2.1.0-alpha.3](https://github.com/mtrezza/parse-server-api-mail-adapter/compare/2.1.0-alpha.2...2.1.0-alpha.3) (2021-10-08)
2+
3+
4+
### Bug Fixes
5+
6+
* bump dev dependencies ([#48](https://github.com/mtrezza/parse-server-api-mail-adapter/issues/48)) ([8e371b7](https://github.com/mtrezza/parse-server-api-mail-adapter/commit/8e371b7499605ac57cfe985b92032bddd270153d))
7+
8+
# [2.1.0-alpha.2](https://github.com/mtrezza/parse-server-api-mail-adapter/compare/2.1.0-alpha.1...2.1.0-alpha.2) (2021-10-08)
9+
10+
11+
### Bug Fixes
12+
13+
* bump semver-regex from 3.1.2 to 3.1.3 ([#47](https://github.com/mtrezza/parse-server-api-mail-adapter/issues/47)) ([8380a43](https://github.com/mtrezza/parse-server-api-mail-adapter/commit/8380a436cb3adc1c5519bdaa4e1dfd5f8259d879))
14+
15+
# [2.1.0-alpha.1](https://github.com/mtrezza/parse-server-api-mail-adapter/compare/2.0.0...2.1.0-alpha.1) (2021-08-26)
16+
17+
18+
### Bug Fixes
19+
20+
* upgrade dependencies ([a3ef631](https://github.com/mtrezza/parse-server-api-mail-adapter/commit/a3ef631894861e3bb1b29dc0b67c9c18b43b0410))
21+
### Features
22+
23+
* add semantic release ([f1bc580](https://github.com/mtrezza/parse-server-api-mail-adapter/commit/f1bc580a471d087c7b936e42af5bed9ea45172f3))

changelogs/CHANGELOG_beta.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# [2.1.0-beta.1](https://github.com/mtrezza/parse-server-api-mail-adapter/compare/2.0.0...2.1.0-beta.1) (2021-10-08)
2+
3+
4+
### Bug Fixes
5+
6+
* bump dev dependencies ([#48](https://github.com/mtrezza/parse-server-api-mail-adapter/issues/48)) ([8e371b7](https://github.com/mtrezza/parse-server-api-mail-adapter/commit/8e371b7499605ac57cfe985b92032bddd270153d))
7+
* bump semver-regex from 3.1.2 to 3.1.3 ([#47](https://github.com/mtrezza/parse-server-api-mail-adapter/issues/47)) ([8380a43](https://github.com/mtrezza/parse-server-api-mail-adapter/commit/8380a436cb3adc1c5519bdaa4e1dfd5f8259d879))
8+
* upgrade dependencies ([a3ef631](https://github.com/mtrezza/parse-server-api-mail-adapter/commit/a3ef631894861e3bb1b29dc0b67c9c18b43b0410))
9+
10+
### Features
11+
12+
* add semantic release ([f1bc580](https://github.com/mtrezza/parse-server-api-mail-adapter/commit/f1bc580a471d087c7b936e42af5bed9ea45172f3))

changelogs/CHANGELOG_release.md

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# 2.0.0
2+
[Full Changelog](https://github.com/mtrezza/parse-server-api-mail-adapter/compare/1.0.7...2.0.0)
3+
### ⚠️ Breaking Changes
4+
- Bumped Node.js version requirement to >=12 (Manuel Trezza) [#39](https://github.com/mtrezza/parse-server-api-mail-adapter/pull/39)
5+
### 🧬 Other Changes
6+
- Fixed demo script and README for `mailgun.js` 3.x which requires `form-data` (Stefan Trauth, Manuel Trezza) [#32](https://github.com/mtrezza/parse-server-api-mail-adapter/pull/32)
7+
8+
# 1.0.7
9+
[Full Changelog](https://github.com/mtrezza/parse-server-api-mail-adapter/compare/1.0.6...1.0.7)
10+
11+
### 🧬 Other Changes
12+
- Added supported providers to README (Manuel Trezza) [#34](https://github.com/mtrezza/parse-server-api-mail-adapter/pull/34)
13+
- Bump postcss from 8.2.9 to 8.2.15 (dependabot) [#37](https://github.com/mtrezza/parse-server-api-mail-adapter/pull/37)
14+
15+
# 1.0.6
16+
[Full Changelog](https://github.com/mtrezza/parse-server-api-mail-adapter/compare/1.0.5...1.0.6)
17+
18+
### 🧬 Other Changes
19+
- Fixes failing to send email in Cloud Code without template (Manuel Trezza) [#26](https://github.com/mtrezza/parse-server-api-mail-adapter/pull/26)
20+
21+
# 1.0.5
22+
[Full Changelog](https://github.com/mtrezza/parse-server-api-mail-adapter/compare/1.0.4...1.0.5)
23+
24+
### 🧬 Other Changes
25+
- Fixes undefined `user` in `localeCallback` when sending email via `Parse.Cloud.sendEmail()` (wlky, Manuel Trezza) [#18](https://github.com/mtrezza/parse-server-api-mail-adapter/pull/18)
26+
27+
# 1.0.4
28+
[Full Changelog](https://github.com/mtrezza/parse-server-api-mail-adapter/compare/1.0.3...1.0.4)
29+
30+
### 🐛 Fixes
31+
- Fixed failing Parse Server adapter controller validation. [#13](https://github.com/mtrezza/parse-server-api-mail-adapter/pull/13). Thanks to [mtrezza](https://github.com/mtrezza).
32+
33+
### 🧬 Improvements
34+
- Added lint to CI workflow. [#14](https://github.com/mtrezza/parse-server-api-mail-adapter/pull/14). Thanks to [mtrezza](https://github.com/mtrezza).
35+
36+
# 1.0.3
37+
[Full Changelog](https://github.com/mtrezza/parse-server-api-mail-adapter/compare/1.0.2...1.0.3)
38+
39+
### 🐛 Fixes
40+
- Added missing release script invocation when publishing package to npm. [#11](https://github.com/mtrezza/parse-server-api-mail-adapter/pull/11). Thanks to [mtrezza](https://github.com/mtrezza).
41+
42+
# 1.0.2
43+
[Full Changelog](https://github.com/mtrezza/parse-server-api-mail-adapter/compare/1.0.1...1.0.2)
44+
45+
### 🧬 Improvements
46+
- Added locale to placeholder callback. [#6](https://github.com/mtrezza/parse-server-api-mail-adapter/pull/6). Thanks to [mtrezza](https://github.com/mtrezza).
47+
- Added current placeholders to placeholder callback. [#7](https://github.com/mtrezza/parse-server-api-mail-adapter/pull/7). Thanks to [mtrezza](https://github.com/mtrezza).
48+
49+
# 1.0.1
50+
[Full Changelog](https://github.com/mtrezza/parse-server-api-mail-adapter/compare/1.0.0...1.0.1)
51+
52+
### 🐛 Fixes
53+
- Removed unused config parameter from docs. [#1](https://github.com/mtrezza/parse-server-api-mail-adapter/pull/1). Thanks to [mtrezza](https://github.com/mtrezza).
54+
55+
### 🧬 Improvements
56+
- ⚠️ Added locale to API callback. This is a breaking change because the `apiCallback` now returns an object `{payload, locale}` instead of only the `payload`. [#2](https://github.com/mtrezza/parse-server-api-mail-adapter/pull/2). Thanks to [mtrezza](https://github.com/mtrezza)
57+
- Added badges to readme. [#3](https://github.com/mtrezza/parse-server-api-mail-adapter/pull/3). Thanks to [mtrezza](https://github.com/mtrezza)
58+
59+
# 1.0.0
60+
- Initial commit.

0 commit comments

Comments
 (0)