Skip to content

Commit 36ae6ef

Browse files
committed
Merge remote-tracking branch 'origin/dev' into feature/package-barrels
2 parents 90385cc + 7abe85c commit 36ae6ef

File tree

67 files changed

+4064
-13980
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+4064
-13980
lines changed

docs/RELEASE_INSTRUCTION.md

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,25 @@
11
# UI Library Release workflow
22

3-
1. Create a new branch for the release. We need a good naming convention: `Release/<patch/minor/major>-<YYMMDD>` (example: `Release/Patch-220128`)
4-
1. Review new release PR (either [on GitHub](https://github.com/umbraco/Umbraco.UI/compare/) or through `npm run lerna:diff`)
5-
1. Make a PR from the new branch to the main branch
3+
1. Create a new branch for the release. We need a good naming convention: `Release/<patch/minor/major>-<YYMMDD>` (example: `Release/Patch-220128`).
4+
1. Review new release PR (either [on GitHub](https://github.com/umbraco/Umbraco.UI/compare/) or through `npm run lerna:diff`).
5+
1. Make a PR from the new branch to the main branch.
66
1. Wait for GitHub checks to pass.
7-
1. Run `npm run lerna:version`
8-
1. Select new version number for every package in the terminal
9-
1. Confirm the new versions - **this step is irreversible**. It will create tags and commit those to the remote. [Check how to clear tags.](#How-to-clear-tags)
10-
1. Commit `package-lock.json` to your release branch
7+
1. Run `npm run lerna:version`.
8+
1. Select new version number for every package in the terminal.
9+
1. Confirm the new versions - **this step is irreversible**. It will create tags and commit those to the remote. [Check how to clear tags.](#How-to-clear-tags).
10+
1. (TODO: Test the new setup works (by adding --no-push and no tag creation)... we haven't tried out jet, but it should fix the problem metnioned below by having a commit without the package-lock begin up to date.. If everything works then remove all tags from repo..).
11+
1. Commit changes and `package-lock.json` to your release branch.
1112
1. Wait for GitHub checks to pass. There will be one check that fails and this is the one triggered by a commit made by `npm run lerna:version` command. This fails because it runs build with old `package-lock.json` that does not have updated versions of the packages. After you commit the new package-lock the check should pass.
12-
1. Merge PR into main - this will trigger two actions - `Publish`, and `Azure Static Web Apps CI/CD`. The `Publish` workflow is responsible for publishing packages to NPM. It will only publish the packages that have higher version that previously published ones. The azure workflow will build and publish UI library Storybook
13-
1. Merge main branch into dev branch
13+
1. Github will post a comment with a test link to try out that the release works in Storybook. Please check that it works.
14+
1. Merge PR into main - this will trigger two actions - `Publish`, and `Azure Static Web Apps CI/CD`. The `Publish` workflow is responsible for publishing packages to NPM. It will only publish the packages that have higher version that previously published ones. The azure workflow will build and publish UI library Storybook.
15+
1. Merge main branch into dev branch.
1416

15-
## How to clear tags
17+
## How to clear tags (maybe not relevant after update mentioned above...)
1618

17-
If something goes wrong during the publish workflow, you might end up with tag numbers not corresponding to the current versions of the packages. Tags are stored both on remote and on local repository. Go to Github and remove all tags with higher versions then the last published version.
19+
If something goes wrong during the publish workflow, you might end up with tag numbers not corresponding to the current versions of the packages. Tags are stored both on remote and on local repository.
1820

19-
Then delete all your local tags and replace them with the tags from the remote. To do that run the following inside your local repository.
21+
1. Go to Github and remove all tags with higher versions then the last published version.
22+
2. Then delete all your local tags and replace them with the tags from the remote. To do that run the following inside your local repository.
2023

2124
OSX
2225

package-lock.json

Lines changed: 3833 additions & 13720 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"build:prod": "npm run clean && npm run build && npm run test",
3636
"clean": "lerna run clean --parallel",
3737
"lerna:publish": "npm run build:prod && npm whoami && lerna publish from-package --yes && npm run lerna-fix",
38-
"lerna:version": "lerna version --exact && rimraf package-lock.json && npm i",
38+
"lerna:version": "lerna version --no-push --exact --no-git-tag-version && rimraf package-lock.json && npm i",
3939
"lerna:diff": "lerna diff",
4040
"lerna-fix": "lerna exec -- node ../../scripts/lerna-fix.mjs",
4141
"lerna:modify-package": "lerna exec -- node ../../scripts/modify-pkgjson.mjs",

packages/uui-action-bar/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@umbraco-ui/uui-action-bar",
3-
"version": "0.0.2",
3+
"version": "0.0.3",
44
"license": "MIT",
55
"keywords": [
66
"Umbraco",
@@ -30,8 +30,8 @@
3030
"custom-elements.json"
3131
],
3232
"dependencies": {
33-
"@umbraco-ui/uui-base": "0.0.14",
34-
"@umbraco-ui/uui-button-group": "0.0.9"
33+
"@umbraco-ui/uui-base": "0.0.15",
34+
"@umbraco-ui/uui-button-group": "0.0.10"
3535
},
3636
"scripts": {
3737
"build": "npm run analyze && tsc --build --force && rollup -c rollup.config.js",

packages/uui-avatar-group/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@umbraco-ui/uui-avatar-group",
3-
"version": "0.0.16",
3+
"version": "0.0.17",
44
"license": "MIT",
55
"keywords": [
66
"Umbraco",
@@ -30,7 +30,7 @@
3030
"custom-elements.json"
3131
],
3232
"dependencies": {
33-
"@umbraco-ui/uui-base": "0.0.14"
33+
"@umbraco-ui/uui-base": "0.0.15"
3434
},
3535
"scripts": {
3636
"build": "npm run analyze && tsc --build --force && rollup -c rollup.config.js",

packages/uui-avatar/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@umbraco-ui/uui-avatar",
3-
"version": "0.0.16",
3+
"version": "0.0.17",
44
"license": "MIT",
55
"description": "An avatar web component for displaying user avatars.",
66
"keywords": [
@@ -30,7 +30,7 @@
3030
"custom-elements.json"
3131
],
3232
"dependencies": {
33-
"@umbraco-ui/uui-base": "0.0.14"
33+
"@umbraco-ui/uui-base": "0.0.15"
3434
},
3535
"scripts": {
3636
"build": "npm run analyze && tsc --build --force && rollup -c rollup.config.js",

packages/uui-badge/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@umbraco-ui/uui-badge",
3-
"version": "0.0.9",
3+
"version": "0.0.10",
44
"license": "MIT",
55
"description": "A badge to notify that there is something that requires attention of the user.",
66
"keywords": [
@@ -30,7 +30,7 @@
3030
"custom-elements.json"
3131
],
3232
"dependencies": {
33-
"@umbraco-ui/uui-base": "0.0.14"
33+
"@umbraco-ui/uui-base": "0.0.15"
3434
},
3535
"scripts": {
3636
"build": "npm run analyze && tsc --build --force && rollup -c rollup.config.js",

packages/uui-base/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@umbraco-ui/uui-base",
3-
"version": "0.0.14",
3+
"version": "0.0.15",
44
"license": "MIT",
55
"keywords": [
66
"Umbraco",

packages/uui-boolean-input/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@umbraco-ui/uui-boolean-input",
3-
"version": "0.0.0",
3+
"version": "0.0.1",
44
"license": "MIT",
55
"keywords": [
66
"Umbraco",
@@ -30,7 +30,7 @@
3030
"custom-elements.json"
3131
],
3232
"dependencies": {
33-
"@umbraco-ui/uui-base": "0.0.14"
33+
"@umbraco-ui/uui-base": "0.0.15"
3434
},
3535
"scripts": {
3636
"build": "npm run analyze && tsc --build --force && rollup -c rollup.config.js",

packages/uui-box/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@umbraco-ui/uui-box",
3-
"version": "0.0.11",
3+
"version": "0.0.12",
44
"license": "MIT",
55
"description": "A box web component for grouping elements",
66
"keywords": [
@@ -29,7 +29,7 @@
2929
"custom-elements.json"
3030
],
3131
"dependencies": {
32-
"@umbraco-ui/uui-base": "0.0.14"
32+
"@umbraco-ui/uui-base": "0.0.15"
3333
},
3434
"scripts": {
3535
"build": "npm run analyze && tsc --build --force && rollup -c rollup.config.js",

0 commit comments

Comments
 (0)