Skip to content

Commit db9b0aa

Browse files
authored
Merge pull request #14 from joutvhu/develop
Use Node 20
2 parents e9e39e1 + 0a9fe75 commit db9b0aa

File tree

7 files changed

+30855
-893
lines changed

7 files changed

+30855
-893
lines changed

.github/workflows/auto-build.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Rebuild Changes
2+
3+
on:
4+
push:
5+
branches:
6+
- 'main'
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
issues: write
13+
contents: write
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- uses: actions/setup-node@v4
18+
with:
19+
node-version: 20
20+
21+
- name: Install packages
22+
run: npm ci
23+
24+
- name: Rebuild
25+
run: npm run release
26+
27+
- name: Check change status
28+
id: check_status
29+
run: |
30+
git status -s
31+
echo "::set-output name=changed::$(git status -s | grep -q 'action/index.js' && echo 'true' || echo 'false')"
32+
33+
- name: Push new action/index.js
34+
if: ${{ steps.check_status.outputs.changed == 'true' }}
35+
run: |
36+
git config --global user.name "GitHub"
37+
git config --global user.email "noreply@github.com"
38+
git commit -m "Rebuild action/index.js" --author="github-actions[bot] <github-actions[bot]@users.noreply.github.com>"
39+
git push origin

.github/workflows/testing.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,15 @@ jobs:
1010
test:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v2
14-
- uses: actions/setup-node@v1
13+
- uses: actions/checkout@v4
14+
15+
- uses: actions/setup-node@v4
1516
with:
16-
node-version: 12
17+
node-version: 20
18+
1719
- name: Install packages
1820
run: npm install
21+
1922
- name: Create test file
2023
run: echo Hello, world! > hello.txt
2124

@@ -51,5 +54,6 @@ jobs:
5154
with:
5255
name: test-m3-artifact
5356
path: hello.txt
57+
5458
- name: Detele all artifact
5559
uses: ./

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ jspm_packages/
4949
.pnp.js
5050

5151
# Node lock file
52-
package-lock.json
5352
yarn.lock
5453
pnpm-lock.yaml
5554

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ inputs:
66
description: The name of the artifact to delete, multiple names can be supplied on new lines.
77
required: false
88
runs:
9-
using: node16
9+
using: node20
1010
main: action/index.js
1111
branding:
1212
icon: trash-2

0 commit comments

Comments
 (0)