Skip to content

Commit

Permalink
feat(workflow) add publish to NPM workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
MauricioAires committed May 8, 2023
1 parent 6e1e84d commit f74c244
Show file tree
Hide file tree
Showing 5 changed files with 57 additions and 3 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Release

on:
push:
branches:
- main

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

jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 16
cache: 'npm'
cache-dependency-path: '**/package-lock.json'

- run: npm ci

- name: Publish to NPM
id: changesets
uses: changesets/action@v1
with:
# This expects you to have a script called release which does a build for your packages and calls changeset publish
publish: npm run release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,16 @@ https://www.npmjs.com/package/@airs-ui/docs

Para utilizar o remote caching da vercel para melhorar a performance e o tempo de build do design system [https://vercel.com/doc](https://vercel.com/docs/concepts/monorepos/remote-caching)


### Changesets

[Documentation](https://github.com/changesets/changesets)

É um gerenciador de versionamento de repositórios

Também foi utilizado um workflow para a automatização do gerenciamento da versão do repositório modificado e a publicação no NPM.


### Vercel Accesstoken

[https://vercel.com/account/tokens](https://vercel.com/account/tokens)
Expand Down
6 changes: 6 additions & 0 deletions packages/tokens/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @airs-ui/tokens

## 2.1.0

### Minor Changes

- Add new test color

## 2.0.0

### Major Changes
Expand Down
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": "@airs-ui/tokens",
"version": "2.0.0",
"version": "2.1.0",
"description": "",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
Expand Down
5 changes: 3 additions & 2 deletions packages/tokens/src/colors.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

export const colors = {
white: '#FFF',
black: '#000',
Expand All @@ -16,4 +15,6 @@ export const colors = {
ignite500: '#00875F',
ignite700: '#015F43',
ignite900: '#00291D',
} as const

test: '#FFF',
} as const

0 comments on commit f74c244

Please sign in to comment.