Skip to content

Commit

Permalink
chore(package.json): prep for semantic-release
Browse files Browse the repository at this point in the history
Automating deploys
  • Loading branch information
tdreyno committed Feb 9, 2020
1 parent e06d209 commit 206cf40
Show file tree
Hide file tree
Showing 7 changed files with 3,529 additions and 93 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Release
on:
push:
branches:
- master
jobs:
release:
name: Release
runs-on: ubuntu-18.04
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: 12
- name: Install dependencies
run: yarn install
- name: Build
run: yarn build
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: yarn semantic-release
16 changes: 16 additions & 0 deletions .releaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/npm",
["@semantic-release/git", {
"assets": ["package.json"],
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}],
["@semantic-release/github", {
"assets": [
{"path": "pkg/dist-web/index.min.js", "label": "Minified Web Distribution"}
]
}]
]
}
6 changes: 1 addition & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
# Changelog

## 1.3.0 - 2020-01-02

### Added

- Everything!
[See Github releases](https://github.com/tdreyno/leisure/releases).
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Pretty Please

[![Test Coverage](https://api.codeclimate.com/v1/badges/bade509a61c126d7f488/test_coverage)](https://codeclimate.com/github/tdreyno/pretty-please/test_coverage)
[![npm latest version](https://img.shields.io/npm/v/@tdreyno/pretty-please/latest.svg)](https://www.npmjs.com/package/@tdreyno/pretty-please)

Pretty Please is a TypeScript library provides Tasks an alternative to Promises.

Documentation of this project is a work in progress. For now, take a look at the example below and lean heavily on TypeScript's information around the public API.
Expand Down
1 change: 1 addition & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = { extends: ["@commitlint/config-conventional"] };
24 changes: 22 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,19 @@
"version": "1.3.0",
"main": "build/index.js",
"typings": "build/index.d.ts",
"repository": "git://github.com/tdreyno/pretty-please.git",
"repository": "https://github.com/tdreyno/pretty-please.git",
"publishConfig": {
"access": "public"
},
"scripts": {
"lint": "eslint -c .eslintrc.js --ext .ts src",
"build": "pika build && yarn compress",
"compress": "terser pkg/dist-web/index.js -o pkg/dist-web/index.min.js --source-map --mangle --compress passes=2 --toplevel --mangle-props regex=/_$/ && gzip-size pkg/dist-web/index.min.js",
"test": "jest --runInBand",
"version": "yarn run build",
"coverage": "jest --runInBand --coverage --coverageDirectory '../coverage'"
"coverage": "jest --runInBand --coverage --coverageDirectory '../coverage'",
"commit": "git-cz",
"semantic-release": "semantic-release"
},
"@pika/pack": {
"pipeline": [
Expand Down Expand Up @@ -41,6 +46,7 @@
},
"husky": {
"hooks": {
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
"pre-commit": "lint-staged"
}
},
Expand All @@ -49,10 +55,16 @@
"yarn": "1.21.1"
},
"devDependencies": {
"@commitlint/cli": "^8.3.5",
"@commitlint/config-conventional": "^8.3.4",
"@commitlint/prompt": "^8.3.5",
"@pika/pack": "^0.5.0",
"@pika/plugin-build-node": "^0.8.1",
"@pika/plugin-build-web": "^0.8.1",
"@pika/plugin-ts-standard-pkg": "^0.8.1",
"@semantic-release/github": "^7.0.3",
"@semantic-release/changelog": "^5.0.0",
"@semantic-release/git": "^9.0.0",
"@types/jest": "^25.1.2",
"@types/puppeteer": "^2.0.0",
"@types/react": "^16.9.19",
Expand All @@ -67,13 +79,21 @@
"ts-toolbelt": "^6.1.13",
"@typescript-eslint/eslint-plugin": "^2.19.0",
"@typescript-eslint/parser": "^2.19.0",
"commitizen": "^4.0.3",
"cz-conventional-changelog": "3.1.0",
"eslint": "^6.8.0",
"eslint-config-prettier": "^6.10.0",
"eslint-plugin-prettier": "^3.1.2",
"semantic-release": "^17.0.2",
"typescript": "^3.7.5"
},
"dependencies": {},
"peerDependencies": {
"react": "^16.11.0"
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
}
}
Loading

0 comments on commit 206cf40

Please sign in to comment.