File tree Expand file tree Collapse file tree 7 files changed +228
-72
lines changed Expand file tree Collapse file tree 7 files changed +228
-72
lines changed Original file line number Diff line number Diff line change
1
+ DEVOPS_SLACK_CHANNEL=
2
+ DEVOPS_SLACK_TOKEN=
Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ build/Release
25
25
# Dependency directory
26
26
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git
27
27
node_modules
28
+ .env
28
29
29
30
# Docker data
30
31
/data
Original file line number Diff line number Diff line change 4
4
### Added
5
5
- Readme - Add a badge for the NPM package version.
6
6
- Schema - Detect enum values for Enums in array schema.
7
+ - Technical - A Release now also automatically publish the release note to Slack.
7
8
8
9
### Changed
9
10
- Readme - Add a community section.
10
11
- Readme - Remove the Licence section as it is already accessible in the Github page header.
11
12
12
13
### Fixed
13
- - Technical - Fix pre-commit hook to avoid renamed file and add new lina at the end of the file.
14
+ - Technical - Fix pre-commit hook to avoid renamed file and add new line at the end of the file.
14
15
- ESLint - Fix ` search-builder ` according to eslint rules.
15
16
- ESLint - Fix eslintrc to allow dangle underscore.
16
17
- ESLint - Fix ` records-decorator ` according to eslint rules.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 32
32
"moment" : " 2.24.0"
33
33
},
34
34
"devDependencies" : {
35
+ "@forestadmin/devops" : " 2.0.0" ,
35
36
"babel-cli" : " 7.0.0-beta.3" ,
36
37
"babel-plugin-transform-runtime" : " 7.0.0-beta.3" ,
37
38
"babel-preset-env" : " 7.0.0-beta.3" ,
38
39
"babel-register" : " 7.0.0-beta.3" ,
39
40
"chai" : " 4.2.0" ,
40
41
"chai-subset" : " 1.6.0" ,
42
+ "dotenv" : " 6.2.0" ,
41
43
"eslint" : " 5.16.0" ,
42
44
"eslint-config-airbnb" : " 16.1.0" ,
43
45
"eslint-plugin-import" : " 2.17.2" ,
48
50
"mongoose-fixture-loader" : " 1.0.2" ,
49
51
"onchange" : " 6.0.0" ,
50
52
"pre-commit" : " 1.2.2" ,
51
- "semver" : " 5.6.0" ,
52
53
"simple-git" : " 1.65.0"
53
54
},
54
55
"scripts" : {
55
56
"build" : " ./node_modules/babel-cli/bin/babel.js src --out-dir dist && echo '\n\\ 033[0;34m[+] \\ 033[0;32mBuild done\\ 033[0m'" ,
56
57
"build:watch" : " onchange 'src/**/*.js' -i -- yarn build" ,
57
- "deploy " : " yarn build && node ./bin/deploy .js" ,
58
+ "release " : " yarn build && node ./scripts/release .js" ,
58
59
"test" : " ./node_modules/mocha/bin/mocha test/**/* --require babel-register --timeout 15000" ,
59
60
"test:watch" : " ./node_modules/mocha/bin/mocha test/**/* adapters/** services/** utils/** --timeout 15000 --watch" ,
60
61
"lint" : " ./node_modules/eslint/bin/eslint.js test src" ,
Original file line number Diff line number Diff line change
1
+ require ( 'dotenv' ) . config ( ) ; // eslint-disable-line
2
+ const { ReleaseManager, ReleaseNoteManager } = require ( '@forestadmin/devops' ) ; // eslint-disable-line
3
+
4
+ const { DEVOPS_SLACK_TOKEN , DEVOPS_SLACK_CHANNEL } = process . env ;
5
+ const OPTIONS = { releaseIcon : '🌱' , withVersion : true } ;
6
+
7
+ new ReleaseManager ( OPTIONS ) . create ( )
8
+ . then ( ( ) => new ReleaseNoteManager ( DEVOPS_SLACK_TOKEN , DEVOPS_SLACK_CHANNEL , OPTIONS ) . create ( ) ) ;
You can’t perform that action at this time.
0 commit comments