Skip to content

Commit adbc129

Browse files
author
Cole Bemis
authored
chore: automate releases
1 parent 1356b01 commit adbc129

6 files changed

Lines changed: 30 additions & 11 deletions

File tree

.travis.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
language: node_js
2+
cache:
3+
directories:
4+
- node_modules
5+
notifications:
6+
email: false
7+
node_js: 6
8+
before_script:
9+
- npm prune
10+
after_success:
11+
- npm run semantic-release

_config.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
1-
data_dir: .
21
exclude:
3-
- README.md
4-
- CHANGELOG.md
5-
- ISSUE_TEMPLATE.md
6-
- LICENSE
72
- node_modules
83
- bin
94
- sandbox

_includes/header.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<header class="pv3 bb b--black-10">
22
<div class="w-80 center flex justify-between items-center">
3-
<h1 class="mv0 normal f3 lh-copy black-90">Feather <span class="f5 black-60">v{{ site.data.package.version }}</span></h1>
3+
<h1 class="mv0 normal f3 lh-copy black-90">Feather</h1>
44

55
<ul class="list mv0 pl0 flex">
66
<li class="dn dib-ns"><a class="no-underline color-inherit dim" href="https://twitter.com/intent/tweet?text=Feather%20-%20Simply%20beautiful%20open%20source%20icons%20by%20%40colebemis%20https://feathericons.com" target="_blank">Tweet</a></li>

_includes/hero.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<h2 class="mt0 mb4 f2 fw3 tc lh-title black-90">Simply beautiful open source icons</h2>
33
<a
44
class="button white bg-accent dim br2"
5-
href="feather-{{ site.data.package.version }}.zip"
5+
href="feather.zip"
66
download
77
onclick="ga('send', 'event', 'download', 'click', 'all');">
88
Download

bin/build-zip.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
version=$(grep '"version"' package.json | cut -d '"' -f4)
55

66
# compress 'icons' directory into feather-[version].zip
7-
zip -r feather-${version}.zip ./icons/
7+
zip -r feather.zip ./icons/

package.json

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,27 @@
11
{
22
"name": "feather-icons",
3-
"version": "2.1.0",
3+
"version": "0.0.0-development",
44
"description": "Simply beautiful open source icons",
55
"scripts": {
6+
"commitmsg": "validate-commit-msg",
7+
"cm": "git-cz",
68
"svgo": "for i in $(find icons/* -type d); do svgo --pretty --multipass --config=svgo-config.yml $i; done",
79
"build": "npm run build-zip && jekyll build",
8-
"build-zip": "./bin/build-zip.sh"
10+
"build-zip": "./bin/build-zip.sh",
11+
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
912
},
1013
"devDependencies": {
11-
"svgo": "^0.7.2"
14+
"commitizen": "^2.9.6",
15+
"cz-conventional-changelog": "^2.0.0",
16+
"husky": "^0.13.4",
17+
"semantic-release": "^6.3.6",
18+
"svgo": "^0.7.2",
19+
"validate-commit-msg": "^2.12.1"
20+
},
21+
"config": {
22+
"commitizen": {
23+
"path": "cz-conventional-changelog"
24+
}
1225
},
1326
"repository": {
1427
"type": "git",

0 commit comments

Comments
 (0)