Skip to content

Commit 2359562

Browse files
committed
ci: add release and ci workflows
1 parent 9bd0ae3 commit 2359562

2 files changed

Lines changed: 46 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- next
8+
pull_request:
9+
branches:
10+
- '**'
11+
12+
jobs:
13+
precommit:
14+
name: Precommit checks
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v4
19+
- name: Setup Node
20+
uses: actions/setup-node@v4
21+
with:
22+
node-version: 18
23+
cache: npm
24+
- name: Install Packages
25+
run: npm ci
26+
- name: Lint Files
27+
run: npm run lint
28+
- name: Typecheck
29+
run: npm run typecheck

.github/workflows/release.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
release:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Release from ${{ github.ref_name }}
13+
uses: gravity-ui/release-action@v1
14+
with:
15+
node-version: 18
16+
github-token: ${{ secrets.GRAVITY_UI_BOT_GITHUB_TOKEN }}
17+
npm-token: ${{ secrets.GRAVITY_UI_BOT_NPM_TOKEN }}

0 commit comments

Comments
 (0)