Skip to content

Commit f74c244

Browse files
committed
feat(workflow) add publish to NPM workflow
1 parent 6e1e84d commit f74c244

File tree

5 files changed

+57
-3
lines changed

5 files changed

+57
-3
lines changed

.github/workflows/release.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
concurrency: ${{ github.workflow }}-${{ github.ref }}
9+
10+
jobs:
11+
release:
12+
name: Release
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v3
17+
18+
- name: Setup Node.js
19+
uses: actions/setup-node@v3
20+
with:
21+
node-version: 16
22+
cache: 'npm'
23+
cache-dependency-path: '**/package-lock.json'
24+
25+
- run: npm ci
26+
27+
- name: Publish to NPM
28+
id: changesets
29+
uses: changesets/action@v1
30+
with:
31+
# This expects you to have a script called release which does a build for your packages and calls changeset publish
32+
publish: npm run release
33+
env:
34+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
36+
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
37+
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,16 @@ https://www.npmjs.com/package/@airs-ui/docs
2323

2424
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)
2525

26+
27+
### Changesets
28+
29+
[Documentation](https://github.com/changesets/changesets)
30+
31+
É um gerenciador de versionamento de repositórios
32+
33+
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.
34+
35+
2636
### Vercel Accesstoken
2737

2838
[https://vercel.com/account/tokens](https://vercel.com/account/tokens)

packages/tokens/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# @airs-ui/tokens
22

3+
## 2.1.0
4+
5+
### Minor Changes
6+
7+
- Add new test color
8+
39
## 2.0.0
410

511
### Major Changes

packages/tokens/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@airs-ui/tokens",
3-
"version": "2.0.0",
3+
"version": "2.1.0",
44
"description": "",
55
"main": "./dist/index.js",
66
"module": "./dist/index.mjs",

packages/tokens/src/colors.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
export const colors = {
32
white: '#FFF',
43
black: '#000',
@@ -16,4 +15,6 @@ export const colors = {
1615
ignite500: '#00875F',
1716
ignite700: '#015F43',
1817
ignite900: '#00291D',
19-
} as const
18+
19+
test: '#FFF',
20+
} as const

0 commit comments

Comments
 (0)