From 1f92bf95a280dcdba76adb159955e7f8bbaf3047 Mon Sep 17 00:00:00 2001 From: Ruben Carvalho Date: Thu, 10 Apr 2025 22:11:36 +0200 Subject: [PATCH 1/9] chore: update beta release workflow to use snapshots --- .github/workflows/beta-release.yml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/beta-release.yml b/.github/workflows/beta-release.yml index 6ea8ed5c8b4..752060e53d3 100644 --- a/.github/workflows/beta-release.yml +++ b/.github/workflows/beta-release.yml @@ -21,13 +21,11 @@ jobs: git config --global user.email "support+actions@github.com" git config --global user.name "github-actions-bot" - - name: Update package versions for beta release + - name: Update package versions for beta snapshot release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - yarn changeset pre enter beta - # Apply the changeset with specific beta tag - yarn changeset version + yarn changeset version --snapshot yarn lint:versions --fix yarn update-version @@ -37,12 +35,12 @@ jobs: run: | echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc - - name: Publish beta release + - name: Publish beta snapshot release env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} run: | git add . - git commit -am "chore: publish beta version" + git commit -am "chore: publish beta snapshot version" yarn prepublishOnly - yarn changeset publish --no-git-tag + yarn changeset publish --no-git-tag --tag beta git reset --hard HEAD^ From 6cde72288df281911848c78d3e7b83d5d0c720e7 Mon Sep 17 00:00:00 2001 From: Ruben Carvalho Date: Fri, 11 Apr 2025 10:11:35 +0200 Subject: [PATCH 2/9] chore: add prereleaseTemplate --- .changeset/config.json | 6 +++++- .github/workflows/beta-release.yml | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.changeset/config.json b/.changeset/config.json index 640b0249d30..363116752a2 100644 --- a/.changeset/config.json +++ b/.changeset/config.json @@ -12,5 +12,9 @@ "access": "public", "baseBranch": "main", "updateInternalDependencies": "patch", - "ignore": [] + "ignore": [], + "snapshot": { + "useCalculatedVersion": true, + "prereleaseTemplate": "{tag}.{timestamp}" + } } diff --git a/.github/workflows/beta-release.yml b/.github/workflows/beta-release.yml index 752060e53d3..90314d03f62 100644 --- a/.github/workflows/beta-release.yml +++ b/.github/workflows/beta-release.yml @@ -25,7 +25,7 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - yarn changeset version --snapshot + yarn changeset version --snapshot beta yarn lint:versions --fix yarn update-version From 94ae71e30e0543fd5a4a0422dfdead95ca17d113 Mon Sep 17 00:00:00 2001 From: Ruben Carvalho Date: Fri, 11 Apr 2025 10:16:58 +0200 Subject: [PATCH 3/9] chore: use datetime instead --- .changeset/config.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.changeset/config.json b/.changeset/config.json index 363116752a2..f5fa800e2ae 100644 --- a/.changeset/config.json +++ b/.changeset/config.json @@ -15,6 +15,6 @@ "ignore": [], "snapshot": { "useCalculatedVersion": true, - "prereleaseTemplate": "{tag}.{timestamp}" + "prereleaseTemplate": "{tag}.{datetime}" } } From e5ef447f03e91965ed770bd627a11de9b64d1f19 Mon Sep 17 00:00:00 2001 From: Ruben Carvalho Date: Fri, 11 Apr 2025 15:30:43 +0200 Subject: [PATCH 4/9] chore: fix snapshot publish command --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index e1165ccd20c..28cd9e92305 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ "build:ts:watch": "wireit", "build:types": "wireit", "build:watch": "wireit", - "changeset-snapshot-publish": "yarn prepublishOnly && yarn changeset version --snapshot && yarn lint:versions --fix && yarn update-version && yarn changeset publish --no-git-tag --tag snapshot", + "changeset-snapshot-publish": "yarn prepublishOnly && yarn changeset version --snapshot snapshot && yarn lint:versions --fix && yarn update-version && yarn changeset publish --no-git-tag --tag snapshot", "changeset-publish": "yarn prepublishOnly && yarn changeset version && yarn install && yarn lint:versions --fix && yarn update-version && yarn changeset publish --no-git-tag && yarn push-to-remote && yarn create-git-tag && yarn postpublish", "update-version": "node ./tasks/update-version.js", "chromatic": "chromatic --build-script-name storybook:build # note that --project-token must be set in your env variables", From e8992d2fd34e3139bf43f6215802d0c0afc8d1fd Mon Sep 17 00:00:00 2001 From: Casey Eickhoff <48574582+caseyisonit@users.noreply.github.com> Date: Wed, 7 May 2025 11:59:49 -0600 Subject: [PATCH 5/9] chore: correct tag name --- .github/workflows/beta-release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/beta-release.yml b/.github/workflows/beta-release.yml index 90314d03f62..3a305782bc8 100644 --- a/.github/workflows/beta-release.yml +++ b/.github/workflows/beta-release.yml @@ -25,7 +25,7 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - yarn changeset version --snapshot beta + yarn changeset version --snapshot preview-${GITHUB_SHA::8} yarn lint:versions --fix yarn update-version From 1262dca33498aa61b5fd9b2c84649c29141d1d2a Mon Sep 17 00:00:00 2001 From: Casey Eickhoff Date: Wed, 7 May 2025 12:07:21 -0600 Subject: [PATCH 6/9] chore: file names match workflow --- .github/workflows/coveralls.yml | 2 +- .github/workflows/{beta-release.yml => preview-release.yml} | 2 +- .github/workflows/{publish.yml => publish-docs-site.yml} | 4 ++-- .github/workflows/{test.yml => urls-smoke-test.yml} | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) rename .github/workflows/{beta-release.yml => preview-release.yml} (98%) rename .github/workflows/{publish.yml => publish-docs-site.yml} (92%) rename .github/workflows/{test.yml => urls-smoke-test.yml} (98%) diff --git a/.github/workflows/coveralls.yml b/.github/workflows/coveralls.yml index a993e7e2176..f2ba14087f3 100644 --- a/.github/workflows/coveralls.yml +++ b/.github/workflows/coveralls.yml @@ -1,4 +1,4 @@ -name: Code coverage +name: Coveralls Code Coverage on: push: diff --git a/.github/workflows/beta-release.yml b/.github/workflows/preview-release.yml similarity index 98% rename from .github/workflows/beta-release.yml rename to .github/workflows/preview-release.yml index 3a305782bc8..8191fc0198c 100644 --- a/.github/workflows/beta-release.yml +++ b/.github/workflows/preview-release.yml @@ -1,4 +1,4 @@ -name: Beta Release +name: Preview Release on: push: diff --git a/.github/workflows/publish.yml b/.github/workflows/publish-docs-site.yml similarity index 92% rename from .github/workflows/publish.yml rename to .github/workflows/publish-docs-site.yml index dad5d1e8273..eabbacb14bf 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish-docs-site.yml @@ -1,4 +1,4 @@ -name: Site publish +name: Publish Documentation Site on: workflow_dispatch: @@ -11,7 +11,7 @@ jobs: name: Build & publish site runs-on: ubuntu-latest # Run the job if manually triggered or if the commit message includes '#publish' & the check suite has passed or if the commit message includes 'docs' and the check suite has passed - if: github.event_name == 'workflow_dispatch' || contains(github.event.head_commit.message, '#publish') || contains(github.event.head_commit.message, 'docs') + if: github.event_name == 'workflow_dispatch' || contains(github.event.head_commit.message, '#publish') || contains(github.event.head_commit.message, 'docs:') || contains(github.event.head_commit.message, 'docs(') steps: - name: Checkout PR branch uses: actions/checkout@v4 diff --git a/.github/workflows/test.yml b/.github/workflows/urls-smoke-test.yml similarity index 98% rename from .github/workflows/test.yml rename to .github/workflows/urls-smoke-test.yml index 34352a6dce3..7fd8c913623 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/urls-smoke-test.yml @@ -1,4 +1,4 @@ -name: Links, and Smoke Tests +name: Preview URLs and Smoke Tests on: pull_request: From 7f6dd82c8c16a12d5295b6f151644816b4c9e571 Mon Sep 17 00:00:00 2001 From: Casey Eickhoff Date: Wed, 7 May 2025 12:08:57 -0600 Subject: [PATCH 7/9] chore: all preview --- .github/workflows/preview-release.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/preview-release.yml b/.github/workflows/preview-release.yml index 8191fc0198c..04de5a9a7b5 100644 --- a/.github/workflows/preview-release.yml +++ b/.github/workflows/preview-release.yml @@ -21,7 +21,7 @@ jobs: git config --global user.email "support+actions@github.com" git config --global user.name "github-actions-bot" - - name: Update package versions for beta snapshot release + - name: Update package versions for previewsnapshot release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | @@ -35,12 +35,12 @@ jobs: run: | echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc - - name: Publish beta snapshot release + - name: Publish preview snapshot release env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} run: | git add . - git commit -am "chore: publish beta snapshot version" + git commit -am "chore: publish preview snapshot version" yarn prepublishOnly - yarn changeset publish --no-git-tag --tag beta + yarn changeset publish --no-git-tag --tag preview git reset --hard HEAD^ From 2c1847d975505d03ae9138030c53e64f2d4c44e0 Mon Sep 17 00:00:00 2001 From: Casey Eickhoff Date: Wed, 7 May 2025 12:09:57 -0600 Subject: [PATCH 8/9] chore: type fix --- .github/workflows/preview-release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/preview-release.yml b/.github/workflows/preview-release.yml index 04de5a9a7b5..b8940ffc6e2 100644 --- a/.github/workflows/preview-release.yml +++ b/.github/workflows/preview-release.yml @@ -21,7 +21,7 @@ jobs: git config --global user.email "support+actions@github.com" git config --global user.name "github-actions-bot" - - name: Update package versions for previewsnapshot release + - name: Update package versions for preview snapshot release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | From d98f99526982247d6d6e17d0d0806d5d0c311a44 Mon Sep 17 00:00:00 2001 From: Casey Eickhoff <48574582+caseyisonit@users.noreply.github.com> Date: Wed, 7 May 2025 12:14:51 -0600 Subject: [PATCH 9/9] chore: name fix --- .github/workflows/urls-smoke-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/urls-smoke-test.yml b/.github/workflows/urls-smoke-test.yml index 7fd8c913623..db0c4d88f4e 100644 --- a/.github/workflows/urls-smoke-test.yml +++ b/.github/workflows/urls-smoke-test.yml @@ -1,4 +1,4 @@ -name: Preview URLs and Smoke Tests +name: Review URLs and Smoke Tests on: pull_request: