From 8f106c4ca92fdac1d49ea0f531e93ac9943acdd6 Mon Sep 17 00:00:00 2001 From: victordev13 Date: Mon, 1 May 2023 19:46:13 -0300 Subject: [PATCH] ci: publish new versions to npm --- .github/workflows/deploy-docs.yaml | 2 +- .github/workflows/release.yaml | 36 ++++++++++++++++++++++++++++++ packages/tokens/CHANGELOG.md | 7 ++++++ packages/tokens/package.json | 2 +- packages/tokens/src/colors.ts | 2 ++ 5 files changed, 47 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/release.yaml create mode 100644 packages/tokens/CHANGELOG.md diff --git a/.github/workflows/deploy-docs.yaml b/.github/workflows/deploy-docs.yaml index d7e6353..b7dc8aa 100644 --- a/.github/workflows/deploy-docs.yaml +++ b/.github/workflows/deploy-docs.yaml @@ -22,7 +22,7 @@ jobs: - run: npm ci - run: npm run build env: - TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} + TURBO_TOKEN: ${{ secrets.VERCEL_TOKEN }} TURBO_TEAM: victordev-ignite - name: Deploy Storybook diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..bb297bd --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,36 @@ +name: Release + +on: + push: + branches: + - main + +concurrency: ${{ github.workflow }}-${{ github.ref }} + +jobs: + release: + name: Release + runs-on: ubuntu-latest + steps: + - name: Checkout Repo + uses: actions/checkout@v3 + + - name: Setup Node.js + uses: actions/setup-node@v3 + with: + node-version: 18 + cache: 'npm' + cache-dependency-path: '**/package-lock.json' + + - run: npm ci + + - name: Publish to NPM + id: changesets + uses: changesets/action@v1 + with: + publish: npm run release + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + TURBO_TOKEN: ${{ secrets.VERCEL_TOKEN }} + TURBO_TEAM: victordev-ignite diff --git a/packages/tokens/CHANGELOG.md b/packages/tokens/CHANGELOG.md new file mode 100644 index 0000000..fe6202e --- /dev/null +++ b/packages/tokens/CHANGELOG.md @@ -0,0 +1,7 @@ +# @victordev-ignite-ui/tokens + +## 1.1.0 + +### Minor Changes + +- add new test color diff --git a/packages/tokens/package.json b/packages/tokens/package.json index 116f362..0e958c9 100644 --- a/packages/tokens/package.json +++ b/packages/tokens/package.json @@ -1,6 +1,6 @@ { "name": "@victordev-ignite-ui/tokens", - "version": "1.0.0", + "version": "1.1.0", "description": "", "main": "./dist/index.js", "module": "./dist/index.mjs", diff --git a/packages/tokens/src/colors.ts b/packages/tokens/src/colors.ts index 02b0874..cba6305 100644 --- a/packages/tokens/src/colors.ts +++ b/packages/tokens/src/colors.ts @@ -15,4 +15,6 @@ export const colors = { ignite500: '#00875F', ignite700: '#015F43', ignite900: '#00291D', + + test: '#ff0000', } as const