Skip to content

Commit e4377ea

Browse files
authored
Tools: Update node version, packages, github actions (#88)
* Tools: Update node version, packages * Tools: Update workflows
1 parent 84db7b7 commit e4377ea

File tree

8 files changed

+10009
-5757
lines changed

8 files changed

+10009
-5757
lines changed

.github/workflows/build-report.yml

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,33 +14,32 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- name: Checkout CSS Audit
17-
uses: actions/checkout@v2
17+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1818
with:
1919
ref: report
20+
2021
- name: Checkout WordPress Core
21-
uses: actions/checkout@v2
22+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2223
with:
2324
repository: WordPress/wordpress-develop
2425
path: wordpress
2526

26-
- name: Set up Node.js
27-
uses: actions/setup-node@v1
27+
- name: Use Node.js
28+
uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3.9.1
2829
with:
29-
node-version: 14.x
30+
node-version-file: ".nvmrc"
31+
cache: "npm"
3032

3133
- name: Install dependencies
3234
run: npm install
3335

3436
- name: Build the audit report
3537
run: npm run css-audit -- wordpress/src/wp-admin/css/*.css wordpress/src/wp-includes/css/*.css
3638

37-
- name: Commit changes
38-
uses: EndBug/add-and-commit@v5
39+
- name: Commit and push
40+
uses: actions-js/push@5a7cbd780d82c0c937b5977586e641b2fd94acc5 # 1.5
3941
with:
40-
author_name: github-actions
41-
author_email: 41898282+github-actions[bot]@users.noreply.github.com
42+
github_token: ${{ secrets.GITHUB_TOKEN }}
4243
message: "[Automated] Update report"
4344
branch: "report"
4445
add: "public"
45-
env:
46-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/merge-trunk-to-report.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@ jobs:
88
merge-branch:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v2
11+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
12+
1213
- name: Merge trunk -> report
13-
uses: devmasx/[email protected]
14+
uses: actions-js/push@5a7cbd780d82c0c937b5977586e641b2fd94acc5 # 1.5
1415
with:
15-
type: now
16-
target_branch: report
1716
github_token: ${{ secrets.GITHUB_TOKEN }}
17+
message: ${{ github.event.head_commit.message }}
18+
branch: "report"

.github/workflows/node.yaml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Node.js CI
1+
name: JavaScript Tests
22

33
on:
44
push:
@@ -13,17 +13,14 @@ jobs:
1313

1414
runs-on: ubuntu-latest
1515

16-
strategy:
17-
matrix:
18-
node-version: [14.x]
19-
2016
steps:
21-
- uses: actions/checkout@v2
17+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2218

23-
- name: Use Node.js ${{ matrix.node-version }}
24-
uses: actions/setup-node@v1
19+
- name: Use Node.js
20+
uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3.9.1
2521
with:
26-
node-version: ${{ matrix.node-version }}
22+
node-version-file: ".nvmrc"
23+
cache: "npm"
2724

2825
- run: npm install
2926

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
14
1+
20

0 commit comments

Comments
 (0)