Skip to content

Commit 0956b5b

Browse files
Chrystiam Nascimento JuniorChrystiam Nascimento Junior
authored andcommitted
feat(CI): add manual gh action workflow
1 parent a2666f7 commit 0956b5b

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

.github/workflows/manual-ci.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Manual CI dispatch
2+
on: workflow_dispatch
3+
4+
5+
env:
6+
GH_TOKEN: ${{ secrets.GH_TOKEN_SEMANTIC_RELEASE || secrets.GITHUB_TOKEN || secrets.GH_TOKEN }}
7+
8+
jobs:
9+
lint:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout repository
13+
uses: actions/checkout@v3
14+
15+
- name: Setup project
16+
uses: ./.github/actions/setup
17+
with:
18+
GH_TOKEN: ${{ env.GH_TOKEN }}
19+
20+
- name: Lint files
21+
run: yarn lint
22+
23+
- name: Typecheck files
24+
run: yarn typecheck
25+
26+
test:
27+
runs-on: ubuntu-latest
28+
steps:
29+
- name: Checkout repository
30+
uses: actions/checkout@v3
31+
32+
- name: Setup project
33+
uses: ./.github/actions/setup
34+
with:
35+
GH_TOKEN: ${{ env.GH_TOKEN }}
36+
37+
- name: Run unit tests
38+
run: yarn test
39+
40+
build:
41+
runs-on: ubuntu-latest
42+
steps:
43+
- name: Checkout repository
44+
uses: actions/checkout@v3
45+
46+
- name: Setup project
47+
uses: ./.github/actions/setup
48+
with:
49+
GH_TOKEN: ${{ env.GH_TOKEN }}
50+
51+
- name: Build package
52+
run: yarn prepack

0 commit comments

Comments
 (0)