Skip to content

Commit 55cb5a8

Browse files
committed
chore: add github action
1 parent 11332a0 commit 55cb5a8

File tree

3 files changed

+36
-10
lines changed

3 files changed

+36
-10
lines changed

.github/workflows/build.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Build
2+
on:
3+
push:
4+
branches:
5+
- "**"
6+
jobs:
7+
release:
8+
name: Test and Release
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v3
13+
with:
14+
fetch-depth: 0
15+
- name: Setup Node.js
16+
uses: actions/setup-node@v3
17+
with:
18+
node-version: "12"
19+
- name: Install dependencies
20+
run: yarn install
21+
- name: "Unit tests"
22+
run: yarn test
23+
- name: "Build"
24+
run: yarn build
25+
- name: "Type check"
26+
run: yarn check-types
27+
- name: "Code formatting check"
28+
run: git reset --hard HEAD && yarn check-formatting
29+
- name: "Commit formatting check"
30+
uses: wagoid/commitlint-github-action@v5
31+
- name: Release
32+
env:
33+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
35+
run: yarn semantic-release

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@
4343
"@commitlint/cli": "^16.2.1",
4444
"@commitlint/config-conventional": "^16.2.1",
4545
"@commitlint/prompt-cli": "^16.2.1",
46-
"@commitlint/travis-cli": "^16.2.1",
4746
"@types/css-modules-loader-core": "^1.1.0",
4847
"@types/glob": "^7.2.0",
4948
"@types/jest": "^27.4.0",

yarn.lock

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -937,7 +937,7 @@
937937
resolved "https://registry.yarnpkg.com/@colors/colors/-/colors-1.5.0.tgz#bb504579c1cae923e6576a4f5da43d25f97bdbd9"
938938
integrity sha512-ooWCrlZP11i8GImSjTHYHLkvFDP48nS4+204nGb1RiX/WXYHmJA2III9/e2DWVabCESdW7hBAEzHRqUn9OUVvQ==
939939

940-
"@commitlint/cli@^16.2.1", "@commitlint/cli@^16.2.4":
940+
"@commitlint/cli@^16.2.1":
941941
version "16.2.4"
942942
resolved "https://registry.yarnpkg.com/@commitlint/cli/-/cli-16.2.4.tgz#f22707918d08c27a19779798788a7c793f1d38e6"
943943
integrity sha512-rbvqvz9JI+uiKxV2nH65BtSU01fsADd3bxe9fWtO3rM0c+CI/H9FfzKkDLvSRmXjvk1G2/wXlCGeqO9IBT4X9g==
@@ -1103,14 +1103,6 @@
11031103
dependencies:
11041104
find-up "^5.0.0"
11051105

1106-
"@commitlint/travis-cli@^16.2.1":
1107-
version "16.2.4"
1108-
resolved "https://registry.yarnpkg.com/@commitlint/travis-cli/-/travis-cli-16.2.4.tgz#d80b5953ca9ce2a040139fa61ed1dae132da26f9"
1109-
integrity sha512-sbvAvi1RNRJVREhaKSgkPPSlC5VTds5gjLZ8r749ywlAhHjPpusSrbCLJbcMVVXhXSVbwN+P7t8pu8nCvXRJdw==
1110-
dependencies:
1111-
"@commitlint/cli" "^16.2.4"
1112-
execa "^5.0.0"
1113-
11141106
"@commitlint/types@^16.2.1":
11151107
version "16.2.1"
11161108
resolved "https://registry.yarnpkg.com/@commitlint/types/-/types-16.2.1.tgz#f25d373b88b01e51fc3fa44488101361945a61bd"

0 commit comments

Comments
 (0)