Skip to content

Commit 58f4afa

Browse files
ci: update to pnpm v8, node v20 (#98)
* ci: update to pnpm v8, node v20 * Update workflows
1 parent 5bdf486 commit 58f4afa

File tree

6 files changed

+187
-141
lines changed

6 files changed

+187
-141
lines changed

.github/workflows/pr.yml

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,22 @@
1-
name: pr
1+
name: PR
2+
23
on: [pull_request]
4+
5+
concurrency:
6+
group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
7+
cancel-in-progress: true
8+
39
jobs:
410
test:
5-
name: 'Test'
11+
name: Test
612
runs-on: ubuntu-latest
713
steps:
8-
- uses: actions/checkout@v3
9-
with:
10-
fetch-depth: '0'
11-
- uses: pnpm/action-setup@v2
12-
name: Install pnpm
13-
id: pnpm-install
14+
- name: Checkout
15+
uses: actions/[email protected]
1416
with:
15-
version: 7
16-
run_install: false
17+
fetch-depth: 0
18+
- name: Install pnpm
19+
uses: pnpm/action-setup@v4
1720

1821
- name: Get pnpm store directory
1922
id: pnpm-cache

.github/workflows/ci.yml renamed to .github/workflows/release.yml

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,25 @@
1-
name: ci
1+
name: Release
2+
3+
on:
4+
push:
5+
branches: [main, alpha, beta, rc]
6+
27
concurrency:
38
group: publish-${{ github.github.base_ref }}
49
cancel-in-progress: true
5-
on: [push]
10+
611
jobs:
7-
test-and-publish:
8-
name: 'Test & Publish'
12+
release:
13+
name: Release
14+
if: github.repository_owner == 'TanStack'
915
runs-on: ubuntu-latest
1016
steps:
11-
- uses: actions/checkout@v3
17+
- name: Checkout
18+
uses: actions/[email protected]
1219
with:
13-
fetch-depth: '0'
14-
- uses: pnpm/action-setup@v2
15-
name: Install pnpm
16-
id: pnpm-install
17-
with:
18-
version: 7
19-
run_install: false
20-
env:
21-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
20+
fetch-depth: 0
21+
- name: Install pnpm
22+
uses: pnpm/action-setup@v4
2223

2324
- name: Get pnpm store directory
2425
id: pnpm-cache

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v16.20.0
1+
v20.19.6

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"private": true,
33
"repository": "https://github.com/tanstack/ranger.git",
4+
"packageManager": "[email protected]",
45
"scripts": {
56
"clean-dist": "pnpm -rc --parallel exec 'rm -rf build dist'",
67
"clean-all": "pnpm -rc --parallel exec 'rm -rf build dist node_modules'",

0 commit comments

Comments
 (0)