From 88201e34d8c80102785298501924e67394974599 Mon Sep 17 00:00:00 2001 From: Ken <26967723+KenAJoh@users.noreply.github.com> Date: Wed, 11 Sep 2024 11:56:52 +0200 Subject: [PATCH] :lock: Moved chromatic env token to .env and github secrets (#3145) --- .github/workflows/chromatic.yml | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/chromatic.yml b/.github/workflows/chromatic.yml index d81832845b..561b0fab10 100644 --- a/.github/workflows/chromatic.yml +++ b/.github/workflows/chromatic.yml @@ -51,7 +51,7 @@ jobs: with: autoAcceptChanges: "main" token: ${{ secrets.GITHUB_TOKEN }} - projectToken: chpt_1dc4af6a1c8cc48 + projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} exitZeroOnChanges: false buildScriptName: "build:storybook-chromatic" onlyChanged: true diff --git a/package.json b/package.json index 7fb51be396..50df9700de 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "docgen": "yarn workspaces foreach -vv -pA run docgen", "changelog": "deno run --allow-read --allow-write --no-config scripts/changelog/createMainChangelog.ts", "updateArticleViews": "deno run --allow-net --allow-env --allow-read --no-config scripts/article-views/update-article-views/main.ts", - "chromatic": "npx chromatic --only-changed --project-token chpt_1dc4af6a1c8cc48 --build-script-name build:storybook-chromatic", + "chromatic": "npx chromatic --only-changed --build-script-name build:storybook-chromatic", "build:storybook-chromatic": "cross-env CHROMATIC=true storybook build", "build:storybook": "storybook build", "test": "yarn workspaces foreach -vv -pA run test",