Skip to content

Commit 792b95b

Browse files
authored
Merge pull request #183 from scientist-softserv/chore-release-v0.1.16
Chore release v0.1.16
2 parents 80c8da2 + b671ebc commit 792b95b

File tree

2 files changed

+60
-15
lines changed

2 files changed

+60
-15
lines changed

README.md

Lines changed: 29 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ A React component library intended for use with WebStore applications.
33

44
## Table of Contents
55

6+
- [How To Install This Library](#how-to-install-this-library)
67
- [Getting started](#getting-started)
78
- [NPM version](#npm-version)
89
- [Running the app](#running-the-app)
@@ -12,8 +13,17 @@ A React component library intended for use with WebStore applications.
1213
- [Linting](#linting)
1314
- [Using Icons](#using-icons)
1415
- [Building the library](#building-the-library)
16+
- [Cutting a New Release](#cutting-a-new-release)
1517

1618
---
19+
20+
## How To Install This Library
21+
``` bash
22+
yarn add @scientist-softserv/webstore-component-library
23+
# OR
24+
npm install @scientist-softserv/webstore-component-library
25+
```
26+
1727
## Getting started
1828
### NPM version
1929
Use NPM version `v8.19.2` and please do not mix it with Yarn.
@@ -27,7 +37,7 @@ Use NPM version `v8.19.2` and please do not mix it with Yarn.
2737
- A new browser tab will automatically open to "http://localhost:6006/"
2838

2939
#### Troubleshooting
30-
- If you see the following when starting the app:
40+
- If you see the following when starting the app:
3141
- `Error: error:0308010C:digital envelope routines::unsupported`
3242
- set the following env variable in your local shell: `export NODE_OPTIONS=--openssl-legacy-provider`
3343

@@ -102,7 +112,7 @@ This project uses [fontawesome's free solid icons](https://fontawesome.com/searc
102112
```
103113

104114
#### Troubleshooting Icons
105-
- If the expected icon doesn't show up, use the link provided above to search for it again. Click on the icon and confirm that the string in the example matches the camelcase variable that was imported and the string that was used with the "icon" prop.
115+
- If the expected icon doesn't show up, use the link provided above to search for it again. Click on the icon and confirm that the string in the example matches the camel cased variable that was imported and the string that was used with the "icon" prop.
106116
107117
## Building the library
108118
We are using Rollup JS to build and publish the library. The scripts will build based on the contents of "src/index.js" so make sure that any newly created components are referenced in the appropriate "components/index" or "compounds/index" files.
@@ -112,18 +122,24 @@ npm run watch-lib # use when you want to build the library for local use; it wil
112122
```
113123
114124
## Cutting a New Release
115-
A git tag should exist for every release. We use `release-it` to automate the coordination of package.json and git tag.
116-
117-
If you want to release a new semver release run:
118-
119-
npm run release
120-
(You will be prompted to select a release type, e.g. patch)
121-
122-
And be sure to say yes to all the prompts, you want a commit, you want a tag, and you want to push up to github.
123-
124-
## Teaching Yarn How To Install This Library
125+
A git tag should exist for every semver release. We use `release-it` to automate the coordination of package.json and git tag.
126+
127+
1. run `npm run release`. You'll be entered into an interactive session with the following prompts:
128+
``` bash
129+
? Select increment # You will be prompted to select a release type, e.g. patch
130+
? Publish @scientist-softserv/webstore-component-library to npm? # Yes
131+
? Please enter OTP for npm: # This is stored in 1password
132+
? Commit (chore: release vX.X.X)? # Yes
133+
? Tag (X.X.X)? # Yes
134+
? Push? # Yes
135+
```
125136

126-
yarn add @scientist-softserv/webstore-component-library@https://github.com/scientist-softserv/webstore-component-library
137+
2. When the above completes, [create the release notes](https://github.com/scientist-softserv/webstore-component-library/releases/new).
138+
- Choose the tag that was just released
139+
- Set the title of the release to be the newly released version
140+
- e.g. "0.1.16"
141+
- Click the "Generate release notes" button above the text field
142+
- Click the "Publish release" button beneath the text field
127143

128144
## Authors and acknowledgment
129145
Alisha Evans

package.json

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111
"test-storybook": "test-storybook",
1212
"build-lib": "rollup -c",
1313
"watch-lib": "rollup -c --watch",
14-
"release": "release-it"
14+
"release": "release-it",
15+
"release:beta": "release-it --preRelease=beta",
16+
"release:dry": "release-it --dry-run --no-npm"
1517
},
1618
"repository": {
1719
"type": "git",
@@ -20,7 +22,8 @@
2022
"keywords": [
2123
"webstore",
2224
"component",
23-
"library"
25+
"library",
26+
"scientist"
2427
],
2528
"author": "Alisha Evans",
2629
"license": "MIT",
@@ -90,9 +93,35 @@
9093
"react-dom": "^18.2.0"
9194
}
9295
},
96+
"contributors": [
97+
"Alisha Evans (https://github.com/alishaevn)",
98+
"Summer Cook (https://github.com/summer-cook)"
99+
],
93100
"publishConfig": {
101+
"access": "public",
94102
"ignore": [
95103
".eslintrc"
96104
]
105+
},
106+
"release-it": {
107+
"git": {
108+
"commitMessage": "chore: release v${version}",
109+
"push": true,
110+
"commit": true,
111+
"tag": true,
112+
"requireCommits": false,
113+
"requireCleanWorkingDir": true
114+
},
115+
"npm": {
116+
"publish": true,
117+
"ignoreVersion": false,
118+
"allowSameVersion": false
119+
},
120+
"hooks": {
121+
"after:release": "echo Successfully released ${name} v${version}."
122+
}
123+
},
124+
"npm": {
125+
"publishPath": "dist"
97126
}
98127
}

0 commit comments

Comments
 (0)