Skip to content

Commit fb229d3

Browse files
committed
ci: add github actions for releasing and ci
1 parent 9bf5e83 commit fb229d3

File tree

5 files changed

+815
-0
lines changed

5 files changed

+815
-0
lines changed

.github/workflows/ci.yml

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Node.js CI
2+
3+
on:
4+
pull_request:
5+
branches: [ '**' ]
6+
7+
jobs:
8+
commitlint:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
with:
13+
fetch-depth: 0
14+
- uses: actions/setup-node@v2
15+
- run: npm ci
16+
- run: npx commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose

.github/workflows/release.yml

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

commitlint.config.js

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

0 commit comments

Comments
 (0)