-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' of github.com:Esri/calcite-components into epic/71…
…80-component-tokens # Conflicts: # packages/calcite-components/src/components.d.ts # packages/calcite-components/src/components/action-bar/action-bar.tsx # packages/calcite-components/src/components/action-pad/action-pad.tsx # packages/calcite-components/src/components/list-item/list-item.scss # packages/calcite-components/src/components/panel/panel.scss # packages/calcite-components/src/components/split-button/split-button.e2e.ts
- Loading branch information
Showing
165 changed files
with
1,755 additions
and
1,461 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
#!/usr/bin/env bash | ||
|
||
if [ "$BRANCH" = "dev" ]; then | ||
if [ "$NEXT_RELEASE_ENABLED" != "true" ]; then | ||
echo "Next release is disabled" | ||
exit 0 | ||
fi | ||
|
||
if ! npm run util:is-next-deployable; then | ||
echo "No deployable changes in dev" | ||
exit 0 | ||
fi | ||
fi | ||
|
||
npm install | ||
|
||
# version the packages with lerna before building to ensure the version in | ||
# Calcite components' source code preamble is correct for deployment | ||
if [ "$BRANCH" = "dev" ]; then | ||
npm run version:next | ||
elif [ "$BRANCH" = "main" ]; then | ||
npm run version:hotfix | ||
elif [ "$BRANCH" = "rc" ]; then | ||
npm run version:rc | ||
fi | ||
|
||
npm run build | ||
npm test | ||
|
||
git config --global user.email "github-actions[bot]@users.noreply.github.com" | ||
git config --global user.name "github-actions[bot]" | ||
|
||
# make sure the committed, autogenerated files are up to date before releasing. | ||
# The "|| true" prevents failure if there are no changes. | ||
git add packages/calcite-components/src/components.d.ts package-lock.json || true | ||
git commit -m "build: update types and package-lock" || true | ||
|
||
# try deploying storybook, but still release next if it fails with "|| true" | ||
if [ "$BRANCH" = "main" ]; then | ||
{ npm run --workspace=@esri/calcite-components build-storybook && | ||
npx --workspace=@esri/calcite-components storybook-to-ghpages \ | ||
--host-token-env-variable=GH_TOKEN_FOR_STORYBOOK \ | ||
--existing-output-dir=docs --ci; } || true | ||
|
||
# remove the built docs after storybook deploys to gh-pages | ||
git reset --hard | ||
fi | ||
|
||
if [ "$BRANCH" = "main" ]; then | ||
npm run publish:next | ||
elif [ "$BRANCH" = "dev" ]; then | ||
npm run publish:hotfix | ||
elif [ "$BRANCH" = "rc" ]; then | ||
npm run publish:rc | ||
fi | ||
|
||
npm run util:push-tags |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: Deploy Prerelease | ||
concurrency: | ||
group: deploy_prerelease | ||
cancel-in-progress: true | ||
on: | ||
# `next` versions are automatically released when deployabled commits are pushed to dev | ||
push: | ||
branches: [dev] | ||
# `hotfix` and `rc` versions must be manually released: | ||
# https://docs.github.com/en/actions/using-workflows/manually-running-a-workflow | ||
workflow_dispatch: | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
id-token: write | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
token: ${{ secrets.ADMIN_TOKEN }} | ||
ref: ${{ github.base_ref || github.ref_name }} | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: package.json | ||
registry-url: "https://registry.npmjs.org" | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
- name: Deploy prerelease and storybook | ||
env: | ||
NEXT_RELEASE_ENABLED: ${{ secrets.NEXT_RELEASE_ENABLED }} | ||
# https://github.com/storybookjs/storybook-deployer/issues/77#issuecomment-618560481 | ||
GH_TOKEN_FOR_STORYBOOK: ${{ github.actor }}:${{ secrets.ADMIN_TOKEN }} | ||
NPM_CONFIG_PROVENANCE: true | ||
BRANCH: ${{ github.base_ref || github.ref_name }} | ||
run: "${{ github.workspace }}/.github/scripts/publishPrerelease.sh" | ||
- name: notify teams | ||
uses: toko-bifrost/ms-teams-deploy-card@3.1.2 | ||
if: ${{ !cancelled() && github.event_name == 'push' }} | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
webhook-uri: ${{ secrets.TEAMS_WEBHOOK_URI_BUILD }} | ||
show-on-start: false | ||
card-layout-exit: complete | ||
timezone: America/Los_Angeles |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.