-
Notifications
You must be signed in to change notification settings - Fork 11
37 lines (37 loc) · 1.02 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Release
on:
push:
branches:
- main
jobs:
packages-release:
runs-on: ubuntu-latest
steps:
- name: Checkout 🔔
uses: actions/checkout@v4
- run: corepack enable
- name: Node Setup 🔔
uses: actions/setup-node@v4
with:
node-version: 20
registry-url: 'https://registry.npmjs.org'
- name: install 🔨
run: yarn install --immutable
- name: build 🔨
run: lerna run build
- name: eslint 🚀
run: yarn eslint packages
- name: typecheck 🚀
run: yarn typecheck
- name: testing 🚀
run: yarn test
- name: Create Release Pull Request or Publish to npm
uses: changesets/action@v1
with:
title: 'chore: version packages'
commit: 'chore: version packages'
version: yarn changeset:version
publish: yarn changeset:publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}