1.0.32 • Published 5 years ago
@supergeneric/yarn-release v1.0.32
Simplifies module releases to NPM via Yarn
Why?
For simplifying the steps when publishing to NPM (especially if from a subfolder):
- copying the root package.json into the build folder
- cleaning it up to remove dev deps
- navigating into that folder
- incrementing the appropriate version number
- publishing
- making sure that version number makes it back down to the root project to keep it all in sync
- navigating back out to the root
Installation
yarn add -D @supergeneric/yarn-release
Exposed Commands
- Just one:
yarn release --major|minor|patch [options]
Options
-V, --version output the version number
-M, --major major release X.#.# for breaking changes
-m, --minor minor release #.X.# non-breaking for feature additions
-p, --patch patch release #.#.X for patch fixes/tweaks
-s, --src <dir> directory to build/release from (default=./src)
-d, --dest <dir> temporary build directory (default=./.dist)
-t, --test build, but do not publish (great for testing locally)
-c, --nocleanup leave build folder after publishing (great for testing locally)
-v, --verbose writes a bunch of extra stuff to the console
-h, --help output usage information
--public equivalent to npm publish --access=public
Example Usage (package.json)
{
"scripts": {
"build": "do some stuff",
"release:major": "yarn build && release --major --src=build",
"release:minor": "yarn build && release --minor --src=build",
"release:patch": "yarn build && release --patch --src=build",
}
}
Caveats
- This build will do a generic
yarn publish
without specific--access=public
flag, meaning it will default to private if it's never been published. Solution is to publish once with that flag set, then userelease
to maintain.
1.0.32
5 years ago
1.0.31
5 years ago
1.0.30
5 years ago
1.0.29
5 years ago
1.0.28
5 years ago
1.0.27
5 years ago
1.0.26
5 years ago
1.0.25
5 years ago
1.0.24
5 years ago
1.0.23
5 years ago
1.0.22
5 years ago
1.0.21
5 years ago
1.0.20
5 years ago
1.0.19
5 years ago
1.0.18
5 years ago
1.0.17
5 years ago
1.0.16
5 years ago
1.0.15
5 years ago
1.0.8
5 years ago
1.0.9
5 years ago
1.0.7
5 years ago
1.0.6
5 years ago
1.0.5
5 years ago
1.0.4
5 years ago
1.0.3
5 years ago
1.0.2
5 years ago
1.0.1
5 years ago
1.0.0
5 years ago