Skip to content

Commit

Permalink
Add Automated Releases (#784)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
hipstersmoothie authored Sep 3, 2019
1 parent 0a64631 commit 8c22fd3
Show file tree
Hide file tree
Showing 6 changed files with 481 additions and 47 deletions.
38 changes: 25 additions & 13 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
- checkout
- run:
name: Install Dependencies
command: yarn install --frozen-lockfile --network-timeout 100000
command: yarn install --frozen-lockfile --network-timeout 100000 --ignore-engines
- run:
name: Build Packages
command: yarn build
Expand All @@ -62,14 +62,10 @@ jobs:
command: yarn test --ci

build-node8:
working_directory: ~/jimp-8
docker:
- image: circleci/node:8-browsers
<<: *defaults
steps:
- checkout
- run:
name: Install Dependencies
command: yarn install --frozen-lockfile --network-timeout 100000
- attach_workspace:
at: ~/jimp
- run:
name: Build Packages
command: yarn build
Expand All @@ -79,6 +75,10 @@ jobs:
- run:
name: Test Browser
command: yarn test:browser --ci
- persist_to_workspace:
root: .
paths:
- .

build-node10:
working_directory: ~/jimp-10
Expand All @@ -96,24 +96,36 @@ jobs:
name: Test
command: yarn test --ci

release:
<<: *defaults
steps:
- attach_workspace:
at: ~/jimp
- run:
name: Release the Project
command: yarn release
workflows:
version: 2
build_and_test:
jobs:
- install

- lint:
requires:
- install

- build-node6.14:
requires:
- lint

- build-node8:
requires:
- lint

- build-node10:
requires:
- lint
- lint

- release:
requires:
- build-node8
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Logs
logs
*.log
.env

# Runtime data
pids
Expand Down
1 change: 0 additions & 1 deletion CHANGELOG.md

This file was deleted.

23 changes: 0 additions & 23 deletions RELEASING.md

This file was deleted.

21 changes: 15 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
{
"name": "@jimp/monorepo",
"version": "0.0.0",
"private": true,
"workspaces": [
"packages/*"
],
"repository": {
"type": "git",
"url": "https://github.com/oliver-moran/jimp.git"
},
"repository": "oliver-moran/jimp",
"author": "Andrew Lisowski <lisowski54@gmail.com>",
"publishConfig": {
"registry":"https://registry.npmjs.org/"
},
"scripts": {
"lint": "xo",
"test": "cross-env BABEL_ENV=test mocha --require @babel/register './packages/**/test/**/*.test.js' --require ts-node/register ./packages/**/test/*.test.ts",
Expand All @@ -17,8 +20,7 @@
"clean:build": "rm -rf packages/**/es packages/**/dist",
"build": "npm run clean:build && lerna run build --stream",
"build:watch": "lerna run build:watch --parallel",
"version": "lerna-changelog --from v0.2.28 > CHANGELOG.md && git add CHANGELOG.md && git commit -m 'Update CHANGELOG.md'",
"publish:packages": "npm run build && lerna publish --force-publish=* --npm-client npm"
"release": "auto shipit"
},
"devDependencies": {
"@babel/cli": "^7.1.0",
Expand All @@ -27,6 +29,7 @@
"@babel/plugin-syntax-object-rest-spread": "^7.0.0",
"@babel/preset-env": "^7.1.0",
"@babel/register": "^7.0.0",
"auto": "^7.4.1",
"babel-eslint": "^9.0.0",
"babel-plugin-add-module-exports": "^1.0.0",
"babel-plugin-istanbul": "^5.0.1",
Expand All @@ -53,6 +56,12 @@
"watchify": "^3.11.0",
"xo": "^0.23.0"
},
"auto": {
"plugins": [
"npm",
"released"
]
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
Expand Down
Loading

0 comments on commit 8c22fd3

Please sign in to comment.