Skip to content

Commit

Permalink
ci: publish new versions to npm
Browse files Browse the repository at this point in the history
  • Loading branch information
victordev13 committed May 1, 2023
1 parent 88dc578 commit 8f106c4
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
36 changes: 36 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -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
7 changes: 7 additions & 0 deletions packages/tokens/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# @victordev-ignite-ui/tokens

## 1.1.0

### Minor Changes

- add new test color
2 changes: 1 addition & 1 deletion packages/tokens/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 2 additions & 0 deletions packages/tokens/src/colors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,6 @@ export const colors = {
ignite500: '#00875F',
ignite700: '#015F43',
ignite900: '#00291D',

test: '#ff0000',
} as const

0 comments on commit 8f106c4

Please sign in to comment.