From b5bcbd320c3ccfd2d54f2778beec495771924164 Mon Sep 17 00:00:00 2001 From: Ben Elan Date: Wed, 27 Mar 2024 16:28:21 -0700 Subject: [PATCH 1/2] ci: prevent outdated types from blocking release --- .github/workflows/deploy-latest.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/deploy-latest.yml b/.github/workflows/deploy-latest.yml index f274f190511..636d35877c6 100644 --- a/.github/workflows/deploy-latest.yml +++ b/.github/workflows/deploy-latest.yml @@ -36,6 +36,13 @@ jobs: run: | npm install npm run build + + 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 + npm run publish:latest env: NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} From bf029b4436f004f68a36a5b0e8e821d66f6b0ce1 Mon Sep 17 00:00:00 2001 From: Ben Elan Date: Wed, 27 Mar 2024 16:48:32 -0700 Subject: [PATCH 2/2] chore: add link to pr for context --- .github/workflows/deploy-latest.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy-latest.yml b/.github/workflows/deploy-latest.yml index 636d35877c6..59fc4a5d89a 100644 --- a/.github/workflows/deploy-latest.yml +++ b/.github/workflows/deploy-latest.yml @@ -37,6 +37,8 @@ jobs: npm install npm run build + # These git commands can be removed once we stop tracking components.d.ts + # 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