Skip to content

Commit 4710ab2

Browse files
committed
Update some dependencies, and switch to release-it
1 parent 0257c1e commit 4710ab2

File tree

4 files changed

+1894
-1741
lines changed

4 files changed

+1894
-1741
lines changed

RELEASE.md

+4-14
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,10 @@
11
# Release
22

3-
The following steps should navigate you through the release process to ensure as few issues as possible.
3+
This project uses release-it to release new versions.
44

55
## Steps
66

7-
### Commit the changelog, bump version, and publish to NPM
7+
### Commit the changelog, bump version, create a release on Github, and publish to NPM
88

9-
1. run `./bin/changelog` and add output to `CHANGELOG.md`
10-
2. edit changelog output to be as user-friendly as possible (drop [INTERNAL] changes etc.)
11-
3. `ember release`
12-
4. `npm publish`
13-
14-
### Create a github release
15-
16-
1. under `Releases` on GitHub choose `Draft New Release`
17-
2. enter the new version number created above as the tag, prefixed with v e.g. (v0.1.12)
18-
3. for release title choose a great name, no pressure.
19-
4. in the description paste the upgrade instructions from the previous release, followed by the new CHANGELOG entry
20-
5. publish the release
9+
1. run `yarn release [patch|minor|major]`
10+
2. review the release created on Github and edit if needed

bin/changelog

-85
This file was deleted.

package.json

+28-16
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"test": "tests"
88
},
99
"scripts": {
10+
"release": "release-it",
1011
"test": "node tests/runner.js && ./node_modules/.bin/eslint index.js lib/* tests/**/*.js"
1112
},
1213
"repository": "https://github.com/ember-cli-deploy/ember-cli-deploy-redis",
@@ -15,32 +16,43 @@
1516
},
1617
"author": "Aaron Chambers and the ember-cli-deploy team",
1718
"license": "MIT",
19+
"dependencies": {
20+
"chalk": "^4.0.0",
21+
"core-object": "^3.1.5",
22+
"ember-cli-deploy-plugin": "^0.2.9",
23+
"ioredis": "^3.2.2",
24+
"redis": "^2.6.3",
25+
"rsvp": "^4.8.5"
26+
},
1827
"devDependencies": {
19-
"chai": "^3.5.0",
20-
"chai-as-promised": "^6.0.0",
28+
"auto-changelog": "^2.0.0",
29+
"chai": "^4.2.0",
30+
"chai-as-promised": "^7.1.1",
2131
"ember-cli": "^3.18.0",
22-
"ember-cli-release": "1.0.0-beta.2",
23-
"eslint": "^3.18.0",
32+
"eslint": "^7.0.0",
2433
"github": "^6.1.0",
25-
"glob": "^7.1.1",
2634
"ioredis-mock": "^3.14.0",
27-
"mocha": "^3.2.0",
28-
"multiline": "^1.0.2",
29-
"sinon": "^6.1.5"
35+
"glob": "^7.1.6",
36+
"mocha": "^7.1.2",
37+
"release-it": "*",
38+
"sinon": "^9.0.2"
3039
},
3140
"keywords": [
3241
"ember-addon",
3342
"ember-cli-deploy-plugin"
3443
],
35-
"dependencies": {
36-
"chalk": "^1.1.3",
37-
"core-object": "^2.0.6",
38-
"ember-cli-deploy-plugin": "^0.2.9",
39-
"ioredis": "^3.2.2",
40-
"redis": "^2.6.3",
41-
"rsvp": "^3.0.18"
42-
},
4344
"ember-addon": {
4445
"configPath": "tests/dummy/config"
46+
},
47+
"release-it": {
48+
"git": {
49+
"changelog": "npx auto-changelog --stdout --commit-limit false --unreleased --template https://raw.githubusercontent.com/release-it/release-it/master/templates/changelog-compact.hbs"
50+
},
51+
"hooks": {
52+
"after:bump": "npx auto-changelog -p"
53+
},
54+
"github": {
55+
"release": true
56+
}
4557
}
4658
}

0 commit comments

Comments
 (0)