@daiyam/artifact-lang-js 0.10.6 → 0.10.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/variants/20/configs/.github/workflows/{check-pr.yml → ci-master.yml} +10 -3
- package/variants/20/configs/.github/workflows/ci-pr.yml +52 -0
- package/variants/20/configs/.lintstagedrc.yml +4 -0
- package/variants/20/configs/.github/workflows/zizmor.yml +0 -25
- package/variants/20/configs/.lintstagedrc +0 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@daiyam/artifact-lang-js",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.8",
|
|
4
4
|
"description": "The base configuration for my javascript projects",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Baptiste Augrain",
|
|
@@ -31,5 +31,5 @@
|
|
|
31
31
|
"project-template",
|
|
32
32
|
"scaffold"
|
|
33
33
|
],
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "ff1ddab91a55c9fd5b354d44e947a9729fc78213"
|
|
35
35
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
name:
|
|
1
|
+
name: CI - Master: Build, Test & Lint
|
|
2
2
|
|
|
3
3
|
on:
|
|
4
|
-
|
|
4
|
+
push:
|
|
5
5
|
branches:
|
|
6
6
|
- master
|
|
7
7
|
paths-ignore:
|
|
@@ -19,6 +19,10 @@ jobs:
|
|
|
19
19
|
fetch-depth: 0
|
|
20
20
|
persist-credentials: false
|
|
21
21
|
|
|
22
|
+
- name: Install zizmor
|
|
23
|
+
run: |
|
|
24
|
+
pipx install zizmor
|
|
25
|
+
|
|
22
26
|
- name: Setup Node.js environment
|
|
23
27
|
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
|
|
24
28
|
with:
|
|
@@ -42,4 +46,7 @@ jobs:
|
|
|
42
46
|
|
|
43
47
|
- name: Lint commit
|
|
44
48
|
run: |
|
|
45
|
-
npx commitlint --from ${
|
|
49
|
+
npx commitlint --from "${BASE_SHA}" --to "${HEAD_SHA}" --verbose
|
|
50
|
+
env:
|
|
51
|
+
BASE_SHA: ${{ github.event.before }}
|
|
52
|
+
HEAD_SHA: ${{ github.event.head }}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
name: CI - Pull Request: Build, Test & Lint
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
pull_request:
|
|
5
|
+
branches:
|
|
6
|
+
- master
|
|
7
|
+
paths-ignore:
|
|
8
|
+
- "**/*.md"
|
|
9
|
+
|
|
10
|
+
permissions: {}
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
check:
|
|
14
|
+
runs-on: ubuntu-latest
|
|
15
|
+
steps:
|
|
16
|
+
- name: Checkout code
|
|
17
|
+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
18
|
+
with:
|
|
19
|
+
fetch-depth: 0
|
|
20
|
+
persist-credentials: false
|
|
21
|
+
|
|
22
|
+
- name: Install zizmor
|
|
23
|
+
run: |
|
|
24
|
+
pipx install zizmor
|
|
25
|
+
|
|
26
|
+
- name: Setup Node.js environment
|
|
27
|
+
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
|
|
28
|
+
with:
|
|
29
|
+
node-version-file: .nvmrc
|
|
30
|
+
|
|
31
|
+
- name: Install dependencies
|
|
32
|
+
run: |
|
|
33
|
+
npm ci
|
|
34
|
+
|
|
35
|
+
- name: Build
|
|
36
|
+
run: |
|
|
37
|
+
npm run build
|
|
38
|
+
|
|
39
|
+
- name: Test
|
|
40
|
+
run: |
|
|
41
|
+
npm run test
|
|
42
|
+
|
|
43
|
+
- name: Lint code
|
|
44
|
+
run: |
|
|
45
|
+
npm run lint:all
|
|
46
|
+
|
|
47
|
+
- name: Lint commit
|
|
48
|
+
run: |
|
|
49
|
+
npx commitlint --from "${BASE_SHA}" --to "${HEAD_SHA}" --verbose
|
|
50
|
+
env:
|
|
51
|
+
BASE_SHA: ${{ github.event.pull_request.base.sha }}
|
|
52
|
+
HEAD_SHA: ${{ github.event.pull_request.head.sha }}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
name: GitHub Actions Security Analysis with zizmor
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
branches:
|
|
6
|
-
- master
|
|
7
|
-
pull_request:
|
|
8
|
-
branches:
|
|
9
|
-
- "**"
|
|
10
|
-
|
|
11
|
-
permissions: {}
|
|
12
|
-
|
|
13
|
-
jobs:
|
|
14
|
-
zizmor:
|
|
15
|
-
runs-on: ubuntu-latest
|
|
16
|
-
permissions:
|
|
17
|
-
security-events: write
|
|
18
|
-
steps:
|
|
19
|
-
- name: Checkout repo
|
|
20
|
-
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
21
|
-
with:
|
|
22
|
-
persist-credentials: false
|
|
23
|
-
|
|
24
|
-
- name: Run zizmor
|
|
25
|
-
uses: zizmorcore/zizmor-action@71321a20a9ded102f6e9ce5718a2fcec2c4f70d8 # v0.5.2
|