Skip to content

Commit 61196dc

Browse files
authored
chore: Update workflows (#18)
* chore: upgrade workflow action title and workflow action dependencies to their latest versions * chore: upgrade pr lint workflow to latest actions * chore: upgrade pr lint workflow to latest actions * chore: update pnpm version in packageManager field
1 parent 703de69 commit 61196dc

File tree

3 files changed

+19
-17
lines changed

3 files changed

+19
-17
lines changed

.github/workflows/pr-lint.yml

+7-6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Lint PR
1+
name: CI
22
on:
33
pull_request:
44
types: [opened, reopened, edited, synchronize]
@@ -14,14 +14,15 @@ jobs:
1414
uses: actions/checkout@v3
1515

1616
- name: Setup pnpm
17-
uses: pnpm/action-setup@v2
17+
uses: pnpm/action-setup@v4
1818
with:
19-
version: 9
19+
version: 9.6.0
20+
run_install: false
2021

21-
- name: Setting up node v18.x
22-
uses: actions/setup-node@v3
22+
- name: Install Node.js 20.x
23+
uses: actions/setup-node@v4
2324
with:
24-
node-version: 18
25+
node-version: 20
2526
cache: "pnpm"
2627

2728
- name: Install workspace dependencies

.github/workflows/tests.yml

+11-10
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Test core selectors
1+
name: Test
22

33
on:
44
push:
@@ -12,27 +12,28 @@ on:
1212

1313
jobs:
1414
test:
15-
name: Test scraping selectors
15+
name: Main package
1616
runs-on: ubuntu-latest
17-
permissions:
18-
contents: write
1917
steps:
2018
- name: Checkout
2119
uses: actions/checkout@v3
2220

21+
# setup pnpm to specific version to avoid breaking changes
2322
- name: Setup pnpm
24-
uses: pnpm/action-setup@v2
23+
uses: pnpm/action-setup@v4
2524
with:
26-
version: 8
25+
version: 9.6.0
26+
run_install: false
2727

28-
- name: Setting up node v18.x
29-
uses: actions/setup-node@v3
28+
# action was tested on node 20.x
29+
- name: Install Node.js 20.x
30+
uses: actions/setup-node@v4
3031
with:
31-
node-version: 18
32+
node-version: 20
3233
cache: 'pnpm'
3334

3435
- name: Install dependencies
35-
run: pnpm install --no-frozen-lockfile
36+
run: pnpm install --frozen-lockfile
3637

3738
- name: Build Package using tsup and turbo
3839
run: pnpm run build --filter=google-sr --filter=google-sr-selectors

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"node": ">=15.0.0",
1717
"pnpm": ">=7"
1818
},
19-
"packageManager": "pnpm@8.6.12",
19+
"packageManager": "pnpm@9.6.0",
2020
"devDependencies": {
2121
"@biomejs/biome": "1.8.3",
2222
"@commitlint/cli": "19.3.0",

0 commit comments

Comments
 (0)