Skip to content

Commit 8c22fd3

Browse files
Add Automated Releases (jimp-dev#784)
* add auto a dev dep is not supported for the version of node, it for releases so shouldn't be a problem add name :pray: must attach turn on verbose logs shorter * add registry * turn off verbose
1 parent 0a64631 commit 8c22fd3

File tree

6 files changed

+481
-47
lines changed

6 files changed

+481
-47
lines changed

.circleci/config.yml

+25-13
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
- checkout
5454
- run:
5555
name: Install Dependencies
56-
command: yarn install --frozen-lockfile --network-timeout 100000
56+
command: yarn install --frozen-lockfile --network-timeout 100000 --ignore-engines
5757
- run:
5858
name: Build Packages
5959
command: yarn build
@@ -62,14 +62,10 @@ jobs:
6262
command: yarn test --ci
6363

6464
build-node8:
65-
working_directory: ~/jimp-8
66-
docker:
67-
- image: circleci/node:8-browsers
65+
<<: *defaults
6866
steps:
69-
- checkout
70-
- run:
71-
name: Install Dependencies
72-
command: yarn install --frozen-lockfile --network-timeout 100000
67+
- attach_workspace:
68+
at: ~/jimp
7369
- run:
7470
name: Build Packages
7571
command: yarn build
@@ -79,6 +75,10 @@ jobs:
7975
- run:
8076
name: Test Browser
8177
command: yarn test:browser --ci
78+
- persist_to_workspace:
79+
root: .
80+
paths:
81+
- .
8282

8383
build-node10:
8484
working_directory: ~/jimp-10
@@ -96,24 +96,36 @@ jobs:
9696
name: Test
9797
command: yarn test --ci
9898

99+
release:
100+
<<: *defaults
101+
steps:
102+
- attach_workspace:
103+
at: ~/jimp
104+
- run:
105+
name: Release the Project
106+
command: yarn release
99107
workflows:
100108
version: 2
101109
build_and_test:
102110
jobs:
103111
- install
104-
112+
105113
- lint:
106114
requires:
107115
- install
108-
116+
109117
- build-node6.14:
110118
requires:
111119
- lint
112-
120+
113121
- build-node8:
114122
requires:
115123
- lint
116-
124+
117125
- build-node10:
118126
requires:
119-
- lint
127+
- lint
128+
129+
- release:
130+
requires:
131+
- build-node8

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Logs
22
logs
33
*.log
4+
.env
45

56
# Runtime data
67
pids

CHANGELOG.md

-1
This file was deleted.

RELEASING.md

-23
This file was deleted.

package.json

+15-6
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
{
2+
"name": "@jimp/monorepo",
3+
"version": "0.0.0",
24
"private": true,
35
"workspaces": [
46
"packages/*"
57
],
6-
"repository": {
7-
"type": "git",
8-
"url": "https://github.com/oliver-moran/jimp.git"
9-
},
8+
"repository": "oliver-moran/jimp",
9+
"author": "Andrew Lisowski <[email protected]>",
10+
"publishConfig": {
11+
"registry":"https://registry.npmjs.org/"
12+
},
1013
"scripts": {
1114
"lint": "xo",
1215
"test": "cross-env BABEL_ENV=test mocha --require @babel/register './packages/**/test/**/*.test.js' --require ts-node/register ./packages/**/test/*.test.ts",
@@ -17,8 +20,7 @@
1720
"clean:build": "rm -rf packages/**/es packages/**/dist",
1821
"build": "npm run clean:build && lerna run build --stream",
1922
"build:watch": "lerna run build:watch --parallel",
20-
"version": "lerna-changelog --from v0.2.28 > CHANGELOG.md && git add CHANGELOG.md && git commit -m 'Update CHANGELOG.md'",
21-
"publish:packages": "npm run build && lerna publish --force-publish=* --npm-client npm"
23+
"release": "auto shipit"
2224
},
2325
"devDependencies": {
2426
"@babel/cli": "^7.1.0",
@@ -27,6 +29,7 @@
2729
"@babel/plugin-syntax-object-rest-spread": "^7.0.0",
2830
"@babel/preset-env": "^7.1.0",
2931
"@babel/register": "^7.0.0",
32+
"auto": "^7.4.1",
3033
"babel-eslint": "^9.0.0",
3134
"babel-plugin-add-module-exports": "^1.0.0",
3235
"babel-plugin-istanbul": "^5.0.1",
@@ -53,6 +56,12 @@
5356
"watchify": "^3.11.0",
5457
"xo": "^0.23.0"
5558
},
59+
"auto": {
60+
"plugins": [
61+
"npm",
62+
"released"
63+
]
64+
},
5665
"husky": {
5766
"hooks": {
5867
"pre-commit": "lint-staged"

0 commit comments

Comments
 (0)