Skip to content

Commit 00016d8

Browse files
authored
ci: Bump CI actions (#1082)
* ci: Bump CI versions * ci: Limit compressed-size to microbundle itself * ci: Limit push CI to master * test: Drop output messages from tests, not reliable enough nor completely necessary * ci: Revert removal of test reporter * ci: Downgrade Node versions * revert: Try reverting this whilst we're at it * ci: Bump release workflow
1 parent aae1611 commit 00016d8

File tree

3 files changed

+10
-22
lines changed

3 files changed

+10
-22
lines changed

.github/workflows/nodejs.yml

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@ name: Node CI
33
on:
44
pull_request: {}
55
push:
6-
branches-ignore:
7-
- trying.tmp
8-
- staging.tmp
6+
branches:
7+
- master
98

109
jobs:
1110
build:
@@ -16,23 +15,12 @@ jobs:
1615
node-version: [12.x, 14.x]
1716

1817
steps:
19-
- uses: actions/checkout@v1
18+
- uses: actions/checkout@v4
2019
- name: Use Node.js ${{ matrix.node-version }}
21-
uses: actions/setup-node@v1
20+
uses: actions/setup-node@v4
2221
with:
2322
node-version: ${{ matrix.node-version }}
24-
- name: Cache node modules
25-
uses: actions/cache@v1
26-
env:
27-
cache-name: cache-node-modules
28-
with:
29-
path: ~/.npm
30-
# This uses the same name as the build-action so we can share the caches.
31-
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
32-
restore-keys: |
33-
${{ runner.os }}-build-${{ env.cache-name }}-
34-
${{ runner.os }}-build-
35-
${{ runner.os }}-
23+
cache: npm
3624
- run: npm ci --ignore-scripts
3725
- name: npm build and test
3826
run: npm test

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Checkout Repo
14-
uses: actions/checkout@master
14+
uses: actions/checkout@v4
1515
with:
1616
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
1717
fetch-depth: 0
1818

19-
- name: Setup Node.js 12.x
20-
uses: actions/setup-node@master
19+
- name: Setup Node.js 22.x
20+
uses: actions/setup-node@v4
2121
with:
22-
node-version: 12.x
22+
node-version: 22.x
2323

2424
- name: Install Dependencies
2525
run: npm install

.github/workflows/size.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
build:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v2
11+
- uses: actions/checkout@v4
1212

1313
- name: compressed-size-action
1414
uses: preactjs/compressed-size-action@v2

0 commit comments

Comments
 (0)