Skip to content

Commit 98b7a2f

Browse files
author
Ahmad Nassri
committed
chore(template): sync with ahmadnassri/template-action-node
1 parent 1f5aea8 commit 98b7a2f

File tree

4 files changed

+37
-91
lines changed

4 files changed

+37
-91
lines changed

.github/dependabot.yml

+3-74
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,9 @@
1-
# ----------------------------------------------- #
2-
# Note: this file originates in template-template #
3-
# ----------------------------------------------- #
1+
# -------------------------------------------------- #
2+
# Note: this file originates in template-action-node #
3+
# -------------------------------------------------- #
44

55
version: 2
66
updates:
7-
- package-ecosystem: gitsubmodule
8-
open-pull-requests-limit: 10
9-
directory: /
10-
commit-message:
11-
prefix: build
12-
prefix-development: chore
13-
include: scope
14-
schedule:
15-
interval: daily
16-
time: "10:00"
17-
timezone: America/Toronto
18-
19-
- package-ecosystem: github-actions
20-
open-pull-requests-limit: 10
21-
directory: /
22-
commit-message:
23-
prefix: chore
24-
prefix-development: chore
25-
include: scope
26-
schedule:
27-
interval: daily
28-
time: "10:00"
29-
timezone: America/Toronto
30-
317
- package-ecosystem: npm
328
open-pull-requests-limit: 10
339
directory: /
@@ -39,51 +15,4 @@ updates:
3915
interval: daily
4016
time: "10:00"
4117
timezone: America/Toronto
42-
43-
- package-ecosystem: npm
44-
open-pull-requests-limit: 10
45-
directory: /action
46-
commit-message:
47-
prefix: build
48-
prefix-development: chore
49-
include: scope
50-
schedule:
51-
interval: daily
52-
time: "10:00"
53-
timezone: America/Toronto
5418

55-
- package-ecosystem: bundler
56-
open-pull-requests-limit: 10
57-
directory: /
58-
commit-message:
59-
prefix: build
60-
prefix-development: chore
61-
include: scope
62-
schedule:
63-
interval: daily
64-
time: "10:00"
65-
timezone: America/Toronto
66-
67-
- package-ecosystem: terraform
68-
open-pull-requests-limit: 10
69-
directory: /
70-
commit-message:
71-
prefix: build
72-
prefix-development: chore
73-
include: scope
74-
schedule:
75-
interval: daily
76-
time: "10:00"
77-
timezone: America/Toronto
78-
79-
- package-ecosystem: docker
80-
open-pull-requests-limit: 10
81-
directory: /
82-
commit-message:
83-
prefix: build
84-
prefix-development: chore
85-
include: scope
86-
schedule:
87-
interval: daily
88-
time: "10:00"
89-
timezone: America/Toronto

.github/workflows/push.yml

+25-15
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
repository_default_branch: ${{ steps.metadata.outputs.repository_default_branch }}
2121

2222
steps:
23-
- uses: actions/checkout@v3.0.2
23+
- uses: actions/checkout@v3.2.0
2424

2525
- id: metadata
2626
uses: ahmadnassri/[email protected]
@@ -31,9 +31,9 @@ jobs:
3131
runs-on: ubuntu-latest
3232

3333
steps:
34-
- uses: actions/checkout@v3.0.2
34+
- uses: actions/checkout@v3.2.0
3535

36-
- uses: ahmadnassri/[email protected].3
36+
- uses: ahmadnassri/[email protected].4
3737
with:
3838
config: .github/linters/.commit-lint.yml
3939

@@ -43,9 +43,9 @@ jobs:
4343
runs-on: ubuntu-latest
4444

4545
steps:
46-
- uses: actions/checkout@v3.0.2
46+
- uses: actions/checkout@v3.2.0
4747

48-
- uses: oxsecurity/megalinter/flavors/javascript@v6
48+
- uses: oxsecurity/megalinter/flavors/javascript@v6.15.0
4949
env:
5050
GITHUB_TOKEN: ${{ github.token }}
5151
MEGALINTER_CONFIG: .github/linters/.mega-linter.yml
@@ -66,9 +66,9 @@ jobs:
6666
runs-on: ubuntu-latest
6767

6868
steps:
69-
- uses: actions/checkout@v3.0.2
69+
- uses: actions/checkout@v3.2.0
7070

71-
- uses: actions/setup-node@v3.4.1
71+
- uses: actions/setup-node@v3.5.1
7272
with:
7373
node-version: latest
7474

@@ -83,11 +83,11 @@ jobs:
8383
runs-on: ubuntu-latest
8484

8585
steps:
86-
- uses: actions/checkout@v3.0.2
86+
- uses: actions/checkout@v3.2.0
8787
with:
8888
submodules: true
8989

90-
- uses: actions/setup-node@v3.4.1
90+
- uses: actions/setup-node@v3.5.1
9191
with:
9292
registry-url: https://npm.pkg.github.com
9393
node-version: latest
@@ -122,12 +122,22 @@ jobs:
122122
version-minor: ${{ steps.release.outputs.release-version-minor }}
123123

124124
steps:
125-
- uses: actions/checkout@v3.0.2
125+
- uses: actions/checkout@v3.2.0
126126
with:
127127
submodules: true
128128

129+
- uses: actions/[email protected]
130+
with:
131+
registry-url: https://npm.pkg.github.com
132+
node-version: latest
133+
cache: npm
134+
135+
- run: npm ci
136+
env:
137+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
138+
129139
- id: release
130-
uses: ahmadnassri/action-semantic-release@v2
140+
uses: ahmadnassri/action-semantic-release@v2.1.11
131141
with:
132142
config: ${{ github.workspace }}/.semantic.json
133143
env:
@@ -143,15 +153,15 @@ jobs:
143153
strategy:
144154
matrix:
145155
release: [ "v${{ needs.release.outputs.version }}" ]
146-
alias:
156+
alias:
147157
- "v${{ needs.release.outputs.version-major }}"
148158
- "v${{ needs.release.outputs.version-major }}.${{ needs.release.outputs.version-minor }}"
149159

150160
steps:
151161
- uses: actions/github-script@v6
152162
with:
153163
script: |
154-
const { object: { sha } } = github.rest.git.getRef({ ...context.repo, ref: 'tags/${{ matrix.release }}' })
164+
const { data: { object: { sha } } } = await github.rest.git.getRef({ ...context.repo, ref: 'tags/${{ matrix.release }}' })
155165
await github.rest.git.deleteRef({ ...context.repo, ref: 'tags/${{ matrix.alias }}' }).catch(() => {})
156166
await github.rest.git.createRef({ ...context.repo, ref: 'refs/tags/${{ matrix.alias }}', sha })
157167
@@ -172,8 +182,8 @@ jobs:
172182
runs-on: ubuntu-latest
173183

174184
steps:
175-
- uses: actions/checkout@v3.0.2
185+
- uses: actions/checkout@v3.2.0
176186

177-
- uses: ahmadnassri/action-template-repository-sync@v2
187+
- uses: ahmadnassri/action-template-repository-sync@v2.3.0
178188
with:
179189
github-token: ${{ secrets.GH_TOKEN }}

.semantic.json

+7
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,13 @@
3030
]
3131
}
3232
}],
33+
["@semantic-release/exec", {
34+
"prepareCmd": "npm run build"
35+
}],
36+
["@semantic-release/git", {
37+
"assets": ["dist/index.js"],
38+
"message": "build(release): compile new build ${nextRelease.version} [skip ci]"
39+
}],
3340
["@semantic-release/github", {
3441
"successComment": false
3542
}]

docker-compose.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ services:
66
# ---- mega-linter ---- #
77
lint:
88
profiles: ["dev"]
9-
image: oxsecurity/megalinter-javascript:v6
9+
image: oxsecurity/megalinter-javascript:v6.15.0
1010
volumes:
1111
- ./:/tmp/lint
1212
environment:
@@ -17,7 +17,7 @@ services:
1717
# ---- readme generator ---- #
1818
readme:
1919
profiles: ["dev"]
20-
image: pandoc/core:2.13
20+
image: pandoc/minimal:2.19
2121
volumes:
2222
- ./:/data
2323
command: --defaults=.pandoc.yml

0 commit comments

Comments
 (0)