Skip to content

Commit 51477f7

Browse files
committed
chore(deploy): upgrade Node.js version to 20.x in deployment configurations and add artifact removal workflow
1 parent 7350f41 commit 51477f7

File tree

4 files changed

+27
-3
lines changed

4 files changed

+27
-3
lines changed

.github/workflows/deploy-prod.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313

1414
strategy:
1515
matrix:
16-
node-version: [18.x]
16+
node-version: [20.x]
1717

1818
steps:
1919
- uses: actions/checkout@v2

.github/workflows/deploy-staging.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111

1212
strategy:
1313
matrix:
14-
node-version: [18.x]
14+
node-version: [20.x]
1515

1616
steps:
1717
- uses: actions/checkout@v3
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Remove old artifacts
2+
3+
on:
4+
schedule:
5+
# Every day at 1am
6+
- cron: '0 1 * * *'
7+
8+
jobs:
9+
remove-old-artifacts:
10+
runs-on: ubuntu-latest
11+
timeout-minutes: 10
12+
13+
# For private repos
14+
permissions:
15+
actions: write
16+
17+
steps:
18+
- name: Remove old artifacts
19+
uses: c-hive/gha-remove-artifacts@v1
20+
with:
21+
age: '1 month' # '<number> <unit>', e.g. 5 days, 2 years, 90 seconds, parsed by Moment.js
22+
# Optional inputs
23+
# skip-tags: true
24+
# skip-recent: 5

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@
138138
},
139139
"homepage": "http://zenuml.com",
140140
"volta": {
141-
"node": "18.0.0",
141+
"node": "20.0.0",
142142
"yarn": "1.22.19"
143143
}
144144
}

0 commit comments

Comments
 (0)