Skip to content

Commit

Permalink
4.0.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
nolimits4web committed Oct 28, 2021
1 parent caefb88 commit 10a69d0
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Change Log

# [4.0.0](https://github.com/nolimits4web/skeleton-elements/compare/v4.0.0-beta.3...4.0.0) (2021-10-13)

- 4.0.0 stable release

# [4.0.0-beta.6](https://github.com/nolimits4web/skeleton-elements/compare/v4.0.0-beta.3...4.0.0-beta.6) (2021-10-13)

### Bug Fixes
Expand Down
14 changes: 14 additions & 0 deletions build/release.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,14 @@ async function release() {
JSON.stringify(subPkg, null, 2),
);

const releaseNotes = fs
.readFileSync('./CHANGELOG.md', 'utf-8')
.split('\n# [')[1]
.split('\n')
.filter((_, index) => index > 0)
.join('\n')
.trim();

await exec.promise('git pull');
await exec.promise('npm i');
await exec.promise('git add .');
Expand All @@ -59,6 +67,12 @@ async function release() {
} else {
await exec.promise(`cd package && npm publish --access public`);
}

await exec.promise(
`gh release create v${pkg.version} --title "v${
pkg.version
}" --notes "${JSON.stringify(releaseNotes)}"`,
);
}

release();
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "skeleton-elements",
"version": "4.0.0-beta.6",
"version": "4.0.0",
"description": "Skeleton elements (aka UI Skeletons, Skeleton Screens, Ghost Elements) are representations of UI that will be available (loaded) soon. They are designed to improve perceived performance.",
"main": "index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion package/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "skeleton-elements",
"version": "4.0.0-beta.6",
"version": "4.0.0",
"description": "Skeleton elements (aka UI Skeletons, Skeleton Screens, Ghost Elements) - UI for improved perceived performance",
"type": "module",
"exports": {
Expand Down

0 comments on commit 10a69d0

Please sign in to comment.