Skip to content

Commit 999319b

Browse files
committed
chore: Update dependabot.yml and codeql.yaml configurations
1 parent 2e43ca9 commit 999319b

File tree

4 files changed

+81
-34
lines changed

4 files changed

+81
-34
lines changed

.github/dependabot.yml

+6-21
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,13 @@ updates:
66
directory: /
77
open-pull-requests-limit: 20
88
commit-message:
9-
prefix: deps
10-
include: scope
9+
prefix: 'deps'
1110
reviewers:
1211
- AliMD
1312
schedule:
1413
interval: weekly
15-
time: '10:30'
16-
day: thursday
14+
time: '00:30'
15+
day: 'thursday'
1716
labels:
1817
- ci
1918
- priority-low
@@ -28,14 +27,13 @@ updates:
2827
versioning-strategy: increase
2928
open-pull-requests-limit: 20
3029
commit-message:
31-
prefix: deps
32-
include: scope
30+
prefix: 'deps'
3331
reviewers:
3432
- AliMD
3533
schedule:
3634
interval: weekly
37-
time: '10:30'
38-
day: thursday
35+
time: '00:30'
36+
day: 'thursday'
3937
labels:
4038
- dependencies
4139
- ci
@@ -56,16 +54,3 @@ updates:
5654
patterns:
5755
- '@alwatr/*'
5856
- 'fract'
59-
60-
- package-ecosystem: docker
61-
directory: /packages/alwatr
62-
reviewers:
63-
- AliMD
64-
schedule:
65-
interval: weekly
66-
time: '10:30'
67-
day: thursday
68-
labels:
69-
- ci
70-
- priority-low
71-
- maintenance

.github/workflows/codeql.yaml

+11-11
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ name: CodeQL
55
on:
66
workflow_dispatch:
77

8-
# schedule:
9-
# - cron: '0 7 * */2 *'
10-
# │ │ │ │ │
11-
# │ │ │ │ └─── day of the week (0 - 6 or SUN-SAT)
12-
# │ │ │ └────── month (1 - 12 or JAN-DEC)
13-
# │ │ └───────── day of the month (1 - 31)
14-
# │ └─────────── hour (0 - 23)
15-
# └───────────── minute (0 - 59)
8+
schedule:
9+
- cron: '0 7 * */2 *'
10+
# │ │ │ │ │
11+
# │ │ │ │ └─── day of the week (0 - 6 or SUN-SAT)
12+
# │ │ │ └────── month (1 - 12 or JAN-DEC)
13+
# │ │ └───────── day of the month (1 - 31)
14+
# │ └─────────── hour (0 - 23)
15+
# └───────────── minute (0 - 59)
1616

1717
jobs:
1818
analyze-code-ql:
@@ -35,14 +35,14 @@ jobs:
3535
uses: actions/[email protected]
3636

3737
- name: 🏗 Initialize CodeQL
38-
uses: github/codeql-action/[email protected].13
38+
uses: github/codeql-action/[email protected].12
3939
with:
4040
languages: ${{ matrix.language }}
4141
# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
4242
# queries: security-extended,security-and-quality
4343

4444
- name: 🏗 Auto build
45-
uses: github/codeql-action/[email protected].13
45+
uses: github/codeql-action/[email protected].12
4646

4747
- name: 🚀 Perform CodeQL Analysis
48-
uses: github/codeql-action/[email protected].13
48+
uses: github/codeql-action/[email protected].12

.github/workflows/dependency-review.yaml

+1-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ name: Dependency Review
55
on:
66
workflow_dispatch:
77

8-
# disable on private repository
9-
# pull_request:
8+
pull_request:
109

1110
jobs:
1211
dependency-review:

.github/workflows/publish-npm.yml

+63
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
2+
3+
name: Publish NPM
4+
5+
on:
6+
workflow_dispatch:
7+
8+
release:
9+
types:
10+
- created
11+
12+
env:
13+
NODE_VERSION: lts/*
14+
15+
jobs:
16+
publish-npm:
17+
if: github.repository_owner == 'Alwatr'
18+
19+
name: Publish NPM
20+
runs-on: ubuntu-latest
21+
22+
permissions:
23+
contents: read
24+
25+
steps:
26+
- name: ⤵️ Checkout repository
27+
uses: actions/[email protected]
28+
29+
- name: 🏗 Setup nodejs
30+
uses: actions/[email protected]
31+
with:
32+
node-version: ${{ env.NODE_VERSION }}
33+
registry-url: 'https://registry.npmjs.org'
34+
35+
- name: 🏗 Setup nodejs corepack
36+
run: corepack enable
37+
38+
- name: 🏗 Get yarn config
39+
id: yarn_config
40+
run: echo "cache_folder=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
41+
42+
- name: 🏗 Cache Layer
43+
uses: actions/[email protected]
44+
# id: yarn_cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
45+
with:
46+
path: ${{ steps.yarn_config.outputs.cache_folder }}
47+
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
48+
restore-keys: |
49+
${{ runner.os }}-yarn-
50+
51+
- name: 🏗 Install dependencies
52+
run: yarn install --immutable
53+
54+
- name: 🏗 Build Typescript
55+
run: yarn build
56+
57+
# - name: 🚀 Extra Packages Build
58+
# run: yarn build:r
59+
60+
- name: 🚀 Publish
61+
run: yarn run publish --yes
62+
env:
63+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

0 commit comments

Comments
 (0)