Skip to content

Commit bb3eaec

Browse files
authored
Merge pull request #7 from giginet/dependabot-automation
Add workflow to build TypeScript automatically
2 parents 6278490 + 4f0a6ab commit bb3eaec

File tree

2 files changed

+47
-0
lines changed

2 files changed

+47
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Dependabot Auto Compilation
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
paths:
8+
- 'package.json'
9+
- 'package-lock.json'
10+
11+
jobs:
12+
auto-compile:
13+
if: ${{ github.actor == 'dependabot[bot]' }}
14+
runs-on: ubuntu-latest
15+
permissions:
16+
contents: write
17+
pull-requests: write
18+
19+
steps:
20+
- uses: actions/checkout@v4
21+
with:
22+
ref: ${{ github.head_ref }}
23+
24+
- name: Setup Node.js
25+
uses: actions/setup-node@v4
26+
with:
27+
node-version-file: .node-version
28+
cache: npm
29+
30+
- name: Install Dependencies
31+
run: npm ci
32+
33+
- name: Build and Test
34+
run: npm run all
35+
36+
- name: Commit changes
37+
run: |
38+
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
39+
git config --local user.name "github-actions[bot]"
40+
git add dist/
41+
git add coverage/
42+
git add badges/
43+
git commit -m "Recompile TypeScript"
44+
45+
- name: Push changes
46+
run: git push

.github/workflows/linter.yml

+1
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,4 @@ jobs:
5151
VALIDATE_TYPESCRIPT_ES: false
5252
VALIDATE_JSON: false
5353
VALIDATE_TYPESCRIPT_STANDARD: false
54+
VALIDATE_CHECKOV: false

0 commit comments

Comments
 (0)