From d8a5c98845bc7da02cd6ed0d90ba810de469e804 Mon Sep 17 00:00:00 2001 From: Sang Dang Date: Wed, 6 Sep 2023 16:39:14 +0300 Subject: [PATCH] make small config to test release --- .github/workflows/publish.yaml | 20 +++++++++++++------- src/minimalist/foundations/colors.ts | 2 +- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 58d8297..b0e75f6 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -7,6 +7,9 @@ on: concurrency: ${{ github.workflow }}-${{ github.ref }} +env: + CI: true + jobs: publish-package: name: Publish to npm when release @@ -31,24 +34,27 @@ jobs: cache: "pnpm" registry-url: "https://registry.npmjs.org" env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} # Don't remove this! + + - name: Setup npmrc + run: | + cat << EOF > "$HOME/.npmrc" + //registry.npmjs.org/:_authToken=$NPM_TOKEN + EOF + env: + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - name: Install dependencies run: pnpm i --frozen-lockfile - - name: Linting - run: pnpm publish - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - - name: Create release id: changesets uses: changesets/action@v1 with: - version: pnpm ci:version commit: "chore(changeset): version packages" title: "chore(changeset): version packages" publish: pnpm ci:publish + version: pnpm ci:version env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/src/minimalist/foundations/colors.ts b/src/minimalist/foundations/colors.ts index 7357dc2..e2724fc 100644 --- a/src/minimalist/foundations/colors.ts +++ b/src/minimalist/foundations/colors.ts @@ -1,7 +1,7 @@ import { theme as baseTheme } from '@chakra-ui/react'; const colors = { - mycolor: baseTheme.colors.gray, + mycolor: baseTheme.colors.green, }; export default colors;