Skip to content

Commit 77a01ee

Browse files
authored
build: semantic release changelog (#316)
* remove semantic-release script, semantic-release should be called through `npx` rather than yarn * add semantic-release changelog step * manually update changelog for previous releases
1 parent 043a3ce commit 77a01ee

File tree

4 files changed

+63
-6
lines changed

4 files changed

+63
-6
lines changed

CHANGELOG.md

Lines changed: 47 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,50 @@
1-
### As of September 21, 2020 CHANGELOG.md is no longer manually updated. Please check the [releases page](https://github.com/amplitude/Amplitude-JavaScript/releases) for up to date changes.
1+
## [7.3.2](https://github.com/amplitude/amplitude-javascript/compare/v7.3.1...v7.3.2) (2020-11-05)
2+
3+
4+
### Bug Fixes
5+
6+
* **cookies:** reduce cookie lifetime ([#306](https://github.com/amplitude/amplitude-javascript/issues/306)) ([84e1a57](https://github.com/amplitude/amplitude-javascript/commit/84e1a5745fbd330fe0b9dba6331e9fbaba5c7015))
7+
* Prototype js fix ([#313](https://github.com/amplitude/amplitude-javascript/issues/313)) ([7e463ab](https://github.com/amplitude/amplitude-javascript/commit/7e463ab3bb5510ce0cf4d0e4edbe0346029488d7))
8+
9+
## [7.3.1](https://github.com/amplitude/amplitude-javascript/compare/v7.3.0...v7.3.1) (2020-10-30)
10+
11+
12+
### Bug Fixes
13+
14+
* **react-native:** Change @react-native-community/async-storage to @react-native-async-storage/async-storage ([#314](https://github.com/amplitude/amplitude-javascript/issues/314)) ([382c5a4](https://github.com/amplitude/amplitude-javascript/commit/382c5a4e508e2ad46a30380ed2e58ee83e696bd4))
15+
16+
# [7.3.0](https://github.com/amplitude/amplitude-javascript/compare/v7.2.2...v7.3.0) (2020-10-15)
17+
18+
19+
### Features
20+
21+
* make oninit public ([#307](https://github.com/amplitude/amplitude-javascript/issues/307)) ([51d5d43](https://github.com/amplitude/amplitude-javascript/commit/51d5d4345b2a66c827c1e051e2b77a435fba0609))
22+
23+
## [7.2.2](https://github.com/amplitude/amplitude-javascript/compare/v7.2.1...v7.2.2) (2020-09-25)
24+
25+
26+
### Bug Fixes
27+
28+
* Unavailable deviceId fallbacks ([#303](https://github.com/amplitude/amplitude-javascript/issues/303)) ([e0d39fd](https://github.com/amplitude/amplitude-javascript/commit/e0d39fdd6ce8e72a3a490ca16b3c1561d0d16513)), closes [#302](https://github.com/amplitude/amplitude-javascript/issues/302)
29+
30+
## [7.2.1](https://github.com/amplitude/amplitude-javascript/compare/v7.2.0...v7.2.1) (2020-09-22)
31+
32+
33+
### Bug Fixes
34+
35+
* **initialization:** always return `this` in onInit ([#300](https://github.com/amplitude/amplitude-javascript/issues/300)) ([44d00d7](https://github.com/amplitude/amplitude-javascript/commit/44d00d7a7f18df19e07107615c2ed7a619b0063c))
36+
* move bad postinstall script ([#301](https://github.com/amplitude/amplitude-javascript/issues/301)) ([ca98af3](https://github.com/amplitude/amplitude-javascript/commit/ca98af3cb7ded59fa35195b7fb1c3edf091d0449))
37+
38+
# [7.2.0](https://github.com/amplitude/amplitude-javascript/compare/v7.1.1...v7.2.0) (2020-09-22)
39+
40+
41+
### Bug Fixes
42+
43+
* **cookies:** respect the options passed into cookies when testing to see if they're enabled ([#294](https://github.com/amplitude/amplitude-javascript/issues/294)) ([61b6590](https://github.com/amplitude/amplitude-javascript/commit/61b6590593238a5f251cbf5aa16233fdd3954802))
44+
45+
### Features
46+
47+
* add logAttributionCapturedEvent option ([#295](https://github.com/amplitude/amplitude-javascript/issues/295)) ([309dac3](https://github.com/amplitude/amplitude-javascript/commit/309dac3873e3404d4e52ba9b6958ab3e194b07b1
248

349
### 7.1.1 (August 26, 2020)
450
* Fix an issue with detection of whether or not cookies are enabled on a device

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
"@babel/plugin-transform-runtime": "^7.3.4",
2828
"@babel/preset-env": "^7.3.4",
2929
"@babel/runtime": "^7.3.4",
30+
"@semantic-release/changelog": "^5.0.1",
3031
"@semantic-release/exec": "^5.0.0",
3132
"@semantic-release/git": "^9.0.0",
3233
"chai": "^4.1.2",
@@ -69,8 +70,7 @@
6970
"docs:build": "cd website/ && yarn build",
7071
"docs:serve": "cd website/ && yarn serve",
7172
"docs:deploy": "cd website/ && yarn deploy",
72-
"docs:swizzle": "cd website/ && yarn swizzle",
73-
"semantic-release": "semantic-release"
73+
"docs:swizzle": "cd website/ && yarn swizzle"
7474
},
7575
"bugs": {
7676
"url": "https://github.com/amplitude/amplitude-javascript/issues"

release.config.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,10 @@ module.exports = {
1010
["@semantic-release/release-notes-generator", {
1111
"preset": "angular",
1212
}],
13-
["@semantic-release/npm", {
14-
"npmPublish": true,
13+
["@semantic-release/changelog", {
14+
"changelogFile": "CHANGELOG.md"
1515
}],
16+
"@semantic-release/npm",
1617
["@semantic-release/exec", {
1718
"prepareCmd": "make release",
1819
"publishCmd": "python scripts/deploy_s3.py --version ${nextRelease.version}",
@@ -22,7 +23,7 @@ module.exports = {
2223
"assets": "amplitude*.js"
2324
}],
2425
["@semantic-release/git", {
25-
"assets": ["package.json", "src/amplitude-snippet.js"],
26+
"assets": ["package.json", "src/amplitude-snippet.js", "CHANGELOG.md"],
2627
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
2728
}],
2829
],

yarn.lock

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -777,6 +777,16 @@
777777
dependencies:
778778
"@types/node" ">= 8"
779779

780+
"@semantic-release/changelog@^5.0.1":
781+
version "5.0.1"
782+
resolved "https://registry.yarnpkg.com/@semantic-release/changelog/-/changelog-5.0.1.tgz#50a84b63e5d391b7debfe021421589fa2bcdafe4"
783+
integrity sha512-unvqHo5jk4dvAf2nZ3aw4imrlwQ2I50eVVvq9D47Qc3R+keNqepx1vDYwkjF8guFXnOYaYcR28yrZWno1hFbiw==
784+
dependencies:
785+
"@semantic-release/error" "^2.1.0"
786+
aggregate-error "^3.0.0"
787+
fs-extra "^9.0.0"
788+
lodash "^4.17.4"
789+
780790
"@semantic-release/commit-analyzer@^8.0.0":
781791
version "8.0.1"
782792
resolved "https://registry.yarnpkg.com/@semantic-release/commit-analyzer/-/commit-analyzer-8.0.1.tgz#5d2a37cd5a3312da0e3ac05b1ca348bf60b90bca"

0 commit comments

Comments
 (0)