Skip to content

Commit c111ea9

Browse files
committed
add updates before first automated release
1 parent 4bccd09 commit c111ea9

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changes to backpack.css 🎒
22

3+
## 2.2.0 (April 02, 2020)
4+
5+
- Improve the publishing experience ([#22](https://github.com/chris-pearce/backpack.css/issues/22))
6+
37
## 2.1.0 (March 29, 2020)
48

59
- Set up linting ([#9](https://github.com/chris-pearce/backpack.css/issues/9))

CONTRIBUTING.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,10 +131,11 @@ Tests will be added eventually for everything that can have a visual test ([see]
131131

132132
backpack.css uses [np](https://github.com/sindresorhus/np) for publishing.
133133

134-
If you have permission to publish a new version, apply the following steps:
134+
If you have permission to publish a new version, apply the following steps on the `master` branch:
135135

136136
1. Add all new changes to [`CHANGELOG.md`](CHANGELOG.md), making sure to follow the existing format.
137-
2. Run: `yarn np <version>` where `<version>` is one of the semantic versioning release types: **patch**, **minor**, or **major**.
137+
2. Run: `git add -A` then `git commit -m "updates before release"`.
138+
3. Run: `yarn release`.
138139

139140
## Linting
140141

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,10 @@
2020
"lint": "stylelint \"**/*.css\"",
2121
"build": "yarn bundle && yarn autoprefix",
2222
"prebuild": "yarn clean",
23-
"version": "yarn build && git add CHANGELOG.md",
24-
"postversion": "yarn clean"
23+
"prerelease": "yarn build",
24+
"release": "np",
25+
"postrelease": "yarn clean",
26+
"test": "echo \"No test specified\""
2527
},
2628
"browserslist": [
2729
"last 4 versions and > 0.5%",

0 commit comments

Comments
 (0)