Skip to content

Commit 5090255

Browse files
committed
ci: setup workflows
1 parent 794b7ef commit 5090255

File tree

6 files changed

+1099
-13
lines changed

6 files changed

+1099
-13
lines changed

.github/workflows/ci.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Node.js CI
2+
3+
on:
4+
pull_request:
5+
branches: [ '**' ]
6+
7+
jobs:
8+
commitlint:
9+
name: Commit Naming
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
with:
14+
fetch-depth: 0
15+
- uses: actions/setup-node@v2
16+
- run: npm ci
17+
- run: npx commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose
18+
verify_files:
19+
name: Verify Files
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: actions/checkout@v2
23+
with:
24+
fetch-depth: 0
25+
- uses: actions/setup-node@v2
26+
- run: npm ci
27+
- run: npm run lint

.github/workflows/release.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches: [main]
6+
7+
jobs:
8+
release:
9+
if: github.repository == 'ydb-platform/ydb-ui-components'
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: yandex-cloud/ui-release-action@main
13+
with:
14+
github-token: ${{ secrets.YDB_PLATFORM_BOT_TOKEN_REPO }}
15+
npm-token: ${{ secrets.NODE_AUTH_TOKEN }}

commitlint.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = {extends: ['@commitlint/config-conventional']};

0 commit comments

Comments
 (0)