Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 14 additions & 23 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ jobs:

strategy:
matrix:
node_version: [lts/-1, lts/*, latest]
# 22 tracks the previous Node.js LTS line; pnpm/setup has no "previous LTS" alias, so bump this manually when Node.js LTS rotates
node_version: [22, lts, latest]
package:
- "@forward-software/react-auth"
- "@forward-software/react-auth-google"
Expand All @@ -27,23 +28,18 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v7

- name: Setup pnpm
uses: pnpm/action-setup@0977fd99725f1db4007ccb2928dbb4e90d06cc86 # v6.0.10

- name: Setup NodeJS
uses: actions/setup-node@v7
- name: Setup pnpm & Node.js
uses: pnpm/setup@703c52620218391530e48b9e8870d5c0082e1b9b # v2.1.0
with:
node-version: ${{ matrix.node_version }}
cache: pnpm
runtime: node@${{ matrix.node_version }}
cache: true
install: false

- name: Install dependencies
run: pnpm i --frozen-lockfile

- name: Install peerDependencies
run: pnpm install --no-frozen-lockfile --config.auto-install-peers=true

- name: Test package
run: pnpm --config.auto-install-peers=true --filter "${{ matrix.package }}" test
run: pnpm --filter "${{ matrix.package }}" test
Comment thread
panz3r marked this conversation as resolved.

build:
name: Build
Expand All @@ -62,20 +58,15 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v7

- name: Setup pnpm
uses: pnpm/action-setup@0977fd99725f1db4007ccb2928dbb4e90d06cc86 # v6.0.10

- name: Setup NodeJS
uses: actions/setup-node@v7
- name: Setup pnpm & Node.js
uses: pnpm/setup@703c52620218391530e48b9e8870d5c0082e1b9b # v2.1.0
with:
node-version: "lts/*"
cache: pnpm
runtime: node@lts
cache: true
install: false

- name: Install dependencies
run: pnpm i --frozen-lockfile

- name: Install peerDependencies
run: pnpm install --no-frozen-lockfile --config.auto-install-peers=true

- name: Build package
run: pnpm --config.auto-install-peers=true --filter "${{ matrix.package }}" build
run: pnpm --filter "${{ matrix.package }}" build
Comment thread
panz3r marked this conversation as resolved.
9 changes: 4 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,21 +50,20 @@ jobs:
uses: actions/checkout@v7

- name: Setup pnpm
uses: pnpm/action-setup@0977fd99725f1db4007ccb2928dbb4e90d06cc86 # v6.0.10
uses: pnpm/setup@703c52620218391530e48b9e8870d5c0082e1b9b # v2.1.0
with:
cache: true
install: false

- name: Setup NodeJS
uses: actions/setup-node@v7
with:
node-version: latest
cache: pnpm
registry-url: "https://registry.npmjs.org"

- name: Install dependencies
run: pnpm i --frozen-lockfile

- name: Install peerDependencies
run: pnpm install --no-frozen-lockfile --config.auto-install-peers=true

- name: Build package
working-directory: ${{ matrix.path }}
run: pnpm build
Comment thread
panz3r marked this conversation as resolved.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"url": "git+https://github.com/forwardsoftware/react-auth.git"
},
"scripts": {},
"packageManager": "pnpm@11.7.0+sha512.19cc852c120c7125760f2443ee6be0ca5b40f9f50598de1a09a1f177503e010e57c23c77646e01e761de59bf874fb22a3398c33ab9691fc13eb946b6f0f4d620",
"packageManager": "pnpm@12.4.0+sha512.37536c26ed40ab4134b6511e09f6b27f3ebb45687468f2406ca3805279a4e5ca158c1931350ad9774d6ab2108d71b3dbaeb39943159294375e4d053e8e05685c",
"devDependencies": {
"npm-run-all2": "9.0.3",
"rimraf": "catalog:",
Expand Down
Loading
Loading