Skip to content

Commit

Permalink
make small config to test release
Browse files Browse the repository at this point in the history
  • Loading branch information
sangdth committed Sep 6, 2023
1 parent 8ce048a commit d8a5c98
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
20 changes: 13 additions & 7 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:

concurrency: ${{ github.workflow }}-${{ github.ref }}

env:
CI: true

jobs:
publish-package:
name: Publish to npm when release
Expand All @@ -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 }}
2 changes: 1 addition & 1 deletion src/minimalist/foundations/colors.ts
Original file line number Diff line number Diff line change
@@ -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;

0 comments on commit d8a5c98

Please sign in to comment.