Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into belan/cherry-pick-hot…
Browse files Browse the repository at this point in the history
…fix-release

* origin/main:
  ci: setup hotfix releasing scripts and settings (#9337)
  fix(carousel): animate items with the same direction (#9335)
  chore: release next
  build(deps): update dependency @esri/calcite-ui-icons to v3.28.1 (#9336)
  fix: add type-fest as dependency due to build error (#9334)
  chore: release next
  fix(block): update text hierarchy and spacing (#9329)
  • Loading branch information
benelan committed May 14, 2024
2 parents 3a4f5ed + 85a04b6 commit 025c64d
Show file tree
Hide file tree
Showing 21 changed files with 321 additions and 105 deletions.
44 changes: 0 additions & 44 deletions .github/workflows/chromatic-rc.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: "Chromatic - Main"
name: Chromatic
on:
push:
branches: [main]
branches: [main, hotfix, rc]
pull_request:
branches: [main]
branches: [main, hotfix, rc]
types: [labeled, synchronize]
jobs:
run:
Expand All @@ -25,7 +25,7 @@ jobs:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
zip: true
exitOnceUploaded: true
autoAcceptChanges: main
autoAcceptChanges: ${{ github.base_ref || github.ref_name }}
workingDir: packages/calcite-components
env:
STORYBOOK_SCREENSHOT_TEST_BUILD: true
Expand Down
24 changes: 18 additions & 6 deletions .github/workflows/deploy-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Deploy Latest
on:
workflow_dispatch:
push:
branches: [main]
branches: [main, hotfix]
permissions:
contents: write
pull-requests: write
Expand All @@ -15,7 +15,7 @@ jobs:
with:
command: manifest
token: ${{ secrets.ADMIN_TOKEN }}
default-branch: main
default-branch: ${{ github.ref_name }}
extra-files: |
packages/calcite-components/readme.md
- name: Checkout Repository
Expand All @@ -24,7 +24,6 @@ jobs:
with:
fetch-depth: 0
token: ${{ secrets.ADMIN_TOKEN }}
ref: main
- name: Setup Node
if: ${{ steps.release.outputs.releases_created }}
uses: actions/setup-node@v4
Expand All @@ -41,9 +40,22 @@ jobs:
# For more info, see: https://github.com/Esri/calcite-design-system/pull/9011
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
# the "|| true" prevents failure if there are no changes
git add packages/calcite-components/src/components.d.ts || true
git commit -m "build: update types" || true
# The "|| true" prevents failure if there are no changes
git add packages/calcite-components/src/components.d.ts package-lock.json || true
# The release-please PR only updates when there are new deployable
# commits, e.g., fixes, features, or breaking changes. This is fine
# but it means autogenerated files can become outdated.
#
# Lerna will only publish when the working tree is clean, so changes
# to autogenerated files cause the release to fail.
#
# The workaround is to commit the files before releasing so everything
# will be up to date in the dists. The commit will be discarded once
# the container is destroyed, and then the autogenerated files will be
# updated in a subsequent PR.
git commit -m "build: update types and package-lock" || true
npm run publish:latest
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-bot.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: PR Bot
on:
pull_request:
branches: [main, rc]
branches: [main, rc, hotfix]
permissions:
pull-requests: write
issues: write
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: E2E
on:
workflow_dispatch:
pull_request:
branches: [main, rc]
branches: [main, rc, hotfix]
jobs:
e2e:
runs-on: ubuntu-20.04
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ name: Run eslint-plugin-calcite-components tests
on:
pull_request:
paths: ["packages/eslint-plugin-calcite-components/**"]
branches: [main, rc]
branches: [main, rc, hotfix]
push:
paths: ["packages/eslint-plugin-calcite-components/**"]
branches: [main, rc]
branches: [main, rc, hotfix]

jobs:
build:
Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"command": {
"version": {
"conventionalCommits": true,
"allowBranch": ["main", "rc"]
"allowBranch": ["main", "rc", "hotfix"]
}
}
}
45 changes: 22 additions & 23 deletions package-lock.json

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

18 changes: 8 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,18 @@
"lint:md": "prettier --write \"**/*.md\" >/dev/null && markdownlint \"{,documentation}/*.md\" --fix --dot --ignore-path .gitignore",
"lint:yml": "prettier --write \".github/**/*.yml\" >/dev/null",
"lint:json": "prettier --write \"*.json\" >/dev/null",
"publish:next": "lerna publish from-package --dist-tag next --yes",
"publish:rc": "lerna publish from-package --dist-tag rc --yes",
"publish:latest": "lerna publish from-package --yes",
"version:next": "npm run util:is-in-sync-with-origin-main && npm run util:is-working-tree-clean && lerna version --conventional-prerelease --preid next --no-git-tag-version --no-push --yes && npm run util:sync-linked-package-versions -- next",
"version:rc": "npm run util:is-in-sync-with-origin-rc && npm run util:is-working-tree-clean && lerna version --conventional-prerelease --preid rc --no-git-tag-version --no-push --yes && npm run util:sync-linked-package-versions -- rc",
"version:latest": "npm run util:is-in-sync-with-origin-main && npm run util:is-working-tree-clean && lerna version --conventional-commits --create-release github --no-git-tag-version --no-push --yes && npm run util:sync-linked-package-versions -- latest",
"version:latest": "./support/release.sh version",
"publish:latest": "./support/release.sh publish",
"version:next": "./support/release.sh version next",
"publish:next": "./support/release.sh publish next",
"version:rc": "./support/release.sh version rc",
"publish:rc": "./support/release.sh publish rc",
"version:hotfix": "./support/release.sh version hotfix",
"publish:hotfix": "./support/release.sh publish hotfix",
"prepare": "husky install",
"start": "turbo run start --log-order=stream",
"test": "turbo run test --log-order=stream",
"util:is-in-sync-with-origin-main": "[ \"$(git rev-parse --abbrev-ref HEAD)\" = \"main\" ] && [ \"$(git rev-parse main)\" = \"$(git rev-parse origin/main)\" ]",
"util:is-in-sync-with-origin-rc": "[ \"$(git rev-parse --abbrev-ref HEAD)\" = \"rc\" ] && [ \"$(git rev-parse rc)\" = \"$(git rev-parse origin/rc)\" ]",
"util:is-next-deployable": "tsx support/isNextDeployable.ts",
"util:is-working-tree-clean": "[ -z \"$(git status --porcelain=v1)\" ]",
"util:push-tags": "git push origin main --follow-tags",
"util:remove-next-changelog-entries": "tsx support/removeNextChangelogEntries.ts",
"util:sync-linked-package-versions": "tsx support/syncLinkedPackageVersions.ts"
Expand Down Expand Up @@ -116,7 +115,6 @@
"ts-jest": "29.1.2",
"tsx": "4.7.2",
"turbo": "1.13.2",
"type-fest": "4.16.0",
"typescript": "5.4.4",
"updtr": "4.0.0",
"workbox-build": "7.0.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
- dependencies
- @esri/calcite-components bumped from ^2.8.1-hotfix.0 to ^2.8.1

## [2.9.0-next.9](https://github.com/Esri/calcite-design-system/compare/@esri/[email protected]...@esri/[email protected]) (2024-05-14)

**Note:** Version bump only for package @esri/calcite-components-angular

## [2.9.0-next.8](https://github.com/Esri/calcite-design-system/compare/@esri/[email protected]...@esri/[email protected]) (2024-05-14)

**Note:** Version bump only for package @esri/calcite-components-angular

## [2.9.0-next.7](https://github.com/Esri/calcite-design-system/compare/@esri/[email protected]...@esri/[email protected]) (2024-05-14)

**Note:** Version bump only for package @esri/calcite-components-angular
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@esri/calcite-components-angular",
"version": "2.9.0-next.7",
"version": "2.9.0-next.9",
"sideEffects": false,
"homepage": "https://developers.arcgis.com/calcite-design-system/",
"description": "A set of Angular components that wrap Esri's Calcite Components.",
Expand All @@ -20,7 +20,7 @@
"@angular/core": ">=16.0.0"
},
"dependencies": {
"@esri/calcite-components": "^2.9.0-next.7",
"@esri/calcite-components": "^2.9.0-next.9",
"tslib": "2.6.2"
},
"lerna": {
Expand Down
8 changes: 8 additions & 0 deletions packages/calcite-components-react/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
- dependencies
- @esri/calcite-components bumped from ^2.8.1-hotfix.0 to ^2.8.1

## [2.9.0-next.9](https://github.com/Esri/calcite-design-system/compare/@esri/[email protected]...@esri/[email protected]) (2024-05-14)

**Note:** Version bump only for package @esri/calcite-components-react

## [2.9.0-next.8](https://github.com/Esri/calcite-design-system/compare/@esri/[email protected]...@esri/[email protected]) (2024-05-14)

**Note:** Version bump only for package @esri/calcite-components-react

## [2.9.0-next.7](https://github.com/Esri/calcite-design-system/compare/@esri/[email protected]...@esri/[email protected]) (2024-05-14)

**Note:** Version bump only for package @esri/calcite-components-react
Expand Down
4 changes: 2 additions & 2 deletions packages/calcite-components-react/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@esri/calcite-components-react",
"sideEffects": false,
"version": "2.9.0-next.7",
"version": "2.9.0-next.9",
"homepage": "https://developers.arcgis.com/calcite-design-system/",
"description": "A set of React components that wrap calcite components",
"license": "SEE LICENSE.md",
Expand All @@ -23,7 +23,7 @@
"dist/"
],
"dependencies": {
"@esri/calcite-components": "^2.9.0-next.7"
"@esri/calcite-components": "^2.9.0-next.9"
},
"peerDependencies": {
"react": ">=16.7",
Expand Down
12 changes: 12 additions & 0 deletions packages/calcite-components/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,18 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
- **input, input-number, input-text:** Restore `autofocus`, `enter-key-mode` and `input-mode` attributes ([#9245](https://github.com/Esri/calcite-design-system/issues/9245)) ([#9306](https://github.com/Esri/calcite-design-system/issues/9306)) ([0498c6e](https://github.com/Esri/calcite-design-system/commit/0498c6ecf3b881e2fec9e18aa5b28211b44b654a))
- **list-item:** Decrease horizontal spacing between selection icon and content ([#9304](https://github.com/Esri/calcite-design-system/issues/9304)) ([0e828b6](https://github.com/Esri/calcite-design-system/commit/0e828b64905818feb65d153e37d44650ebebf9f6))

## [2.9.0-next.9](https://github.com/Esri/calcite-design-system/compare/@esri/[email protected]...@esri/[email protected]) (2024-05-14)

### Bug Fixes

- add type-fest as dependency due to build error ([#9334](https://github.com/Esri/calcite-design-system/issues/9334)) ([6647d18](https://github.com/Esri/calcite-design-system/commit/6647d18f77051073871c37458b4088e1bad77af8)), closes [#9307](https://github.com/Esri/calcite-design-system/issues/9307) [/github.com/Esri/calcite-design-system/blob/27a82dcaf8b091c609b3bf765d8c8617c447d8e7/packages/calcite-components/support/preact.ts#L8](https://github.com/Esri//github.com/Esri/calcite-design-system/blob/27a82dcaf8b091c609b3bf765d8c8617c447d8e7/packages/calcite-components/support/preact.ts/issues/L8)

## [2.9.0-next.8](https://github.com/Esri/calcite-design-system/compare/@esri/[email protected]...@esri/[email protected]) (2024-05-14)

### Bug Fixes

- **block:** update text hierarchy and spacing ([#9329](https://github.com/Esri/calcite-design-system/issues/9329)) ([796372e](https://github.com/Esri/calcite-design-system/commit/796372ee8432ed731e3a49405b153ef05c41a8b3)), closes [#9323](https://github.com/Esri/calcite-design-system/issues/9323)

## [2.9.0-next.7](https://github.com/Esri/calcite-design-system/compare/@esri/[email protected]...@esri/[email protected]) (2024-05-14)

### Features
Expand Down
Loading

0 comments on commit 025c64d

Please sign in to comment.