Skip to content

Commit 8dc0059

Browse files
authored
Merge v4 changes to main (#1912)
2 parents 51ae671 + 7b0b673 commit 8dc0059

File tree

536 files changed

+30067
-51063
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

536 files changed

+30067
-51063
lines changed

.editorconfig

Lines changed: 0 additions & 22 deletions
This file was deleted.

.eslintrc

Lines changed: 0 additions & 51 deletions
This file was deleted.

.github/actions/build/action.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ inputs:
55
node:
66
description: The Node version to use
77
required: false
8-
default: 18
8+
default: 22
99

1010
runs:
1111
using: composite
@@ -14,17 +14,17 @@ runs:
1414
- uses: actions/setup-node@v3
1515
with:
1616
node-version: ${{ inputs.node }}
17-
cache: npm
17+
cache: pnpm
1818

1919
- shell: bash
20-
run: npm ci
21-
env:
22-
NODE_ENV: development
20+
run: |
21+
npm i -g pnpm
22+
pnpm --version # Verify installation
2323
2424
- shell: bash
25-
run: npm run install:example
25+
run: pnpm install
2626
env:
2727
NODE_ENV: development
2828

2929
- shell: bash
30-
run: npm run build
30+
run: pnpm run build

.github/actions/npm-publish/action.yml

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,21 +19,25 @@ runs:
1919
- name: Checkout code
2020
uses: actions/checkout@v4
2121

22-
- name: Setup Node
22+
- name: Setup Node.js with pnpm caching
23+
uses: pnpm/action-setup@v4
24+
with:
25+
version: 10
26+
27+
- name: Install Node.js
2328
uses: actions/setup-node@v4
2429
with:
25-
node-version: ${{ inputs.node-version }}
26-
cache: 'npm'
27-
registry-url: 'https://registry.npmjs.org'
30+
node-version: 22
31+
cache: 'pnpm'
2832

2933
- name: Install dependencies
3034
shell: bash
31-
run: npm ci --include=dev
35+
run: pnpm install --frozen-lockfile
3236

3337
- name: Build package
3438
if: inputs.require-build == 'true'
3539
shell: bash
36-
run: npm run build
40+
run: pnpm run build
3741

3842
- name: Publish release to NPM
3943
shell: bash
@@ -46,7 +50,9 @@ runs:
4650
else
4751
TAG="latest"
4852
fi
49-
npm publish --provenance --tag $TAG
53+
npm config set "//registry.npmjs.org/:_authToken" "${NPM_TOKEN}"
54+
pnpm publish --tag $TAG
5055
env:
51-
NODE_AUTH_TOKEN: ${{ inputs.npm-token }}
56+
NPM_TOKEN: ${{ inputs.npm-token }}
5257
VERSION: ${{ inputs.version }}
58+
NPM_CONFIG_PROVENANCE: true

.github/actions/prepare/action.yml

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,23 @@ inputs:
55
node:
66
description: The Node version to use
77
required: false
8-
default: 18
8+
default: 22
99
cache:
10-
description: The cache key identifier to use
11-
required: true
10+
description: The cache key identifier to use
11+
required: true
1212

1313
runs:
1414
using: composite
1515

1616
steps:
17-
- uses: actions/setup-node@v3
18-
with:
19-
node-version: ${{ inputs.node }}
20-
cache: npm
17+
- name: Setup Node.js with pnpm caching
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version: ${{ inputs.node }}
21+
cache: 'pnpm'
2122

22-
- uses: actions/cache/restore@v3
23-
with:
24-
path: .
25-
key: ${{ inputs.cache }}
23+
- name: Restore cache manually
24+
uses: actions/cache/restore@v4
25+
with:
26+
path: .
27+
key: ${{ inputs.cache }}

.github/workflows/browserstack.yml

Lines changed: 0 additions & 49 deletions
This file was deleted.

.github/workflows/playwright.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Playwright Tests
2+
on:
3+
push:
4+
branches: [main, master]
5+
pull_request:
6+
branches: [main, master]
7+
jobs:
8+
test:
9+
if: false # Disable this job temporarily. TODO: Fix this workflow
10+
timeout-minutes: 60
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: actions/setup-node@v4
15+
with:
16+
node-version: lts/*
17+
- name: Install dependencies
18+
run: npm install -g pnpm && pnpm install
19+
- name: Install Playwright Browsers
20+
run: pnpm exec playwright install --with-deps
21+
22+
- name: Run build step
23+
uses: ./.github/actions/build
24+
with:
25+
node: 22
26+
27+
- name: Run Playwright tests
28+
run: pnpm exec playwright test
29+
- uses: actions/upload-artifact@v4
30+
if: ${{ !cancelled() }}
31+
with:
32+
name: playwright-report
33+
path: playwright-report/
34+
retention-days: 30

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
rl-scanner:
1919
uses: ./.github/workflows/rl-secure.yml
2020
with:
21-
node-version: 18 ## depends if build requires node else we can remove this.
21+
node-version: 22 ## Updated to Node.js 22
2222
artifact-name: 'nextjs-auth0.tgz' ## Will change respective to Repository
2323
secrets:
2424
RLSECURE_LICENSE: ${{ secrets.RLSECURE_LICENSE }}
@@ -32,7 +32,7 @@ jobs:
3232
uses: ./.github/workflows/npm-release.yml
3333
needs: rl-scanner ## this is important as this will not let release job to run until rl-scanner is done
3434
with:
35-
node-version: 18
35+
node-version: 22 ## Updated to Node.js 22
3636
require-build: false
3737
secrets:
3838
npm-token: ${{ secrets.NPM_TOKEN }}

.github/workflows/rl-secure.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,20 @@ jobs:
3737
with:
3838
fetch-depth: 0
3939

40+
- name: Setup pnpm
41+
uses: pnpm/action-setup@v4
42+
with:
43+
version: 10
44+
45+
- name: Setup Node.js with pnpm caching
46+
uses: actions/setup-node@v4
47+
with:
48+
node-version: ${{ inputs.node-version }}
49+
cache: "pnpm"
50+
51+
- name: Install dependencies
52+
run: pnpm install --frozen-lockfile
53+
4054
- name: Build package
4155
uses: ./.github/actions/build
4256
with:

.github/workflows/snyk.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,14 @@ jobs:
3434
- uses: actions/checkout@v4
3535
with:
3636
ref: ${{ github.event.pull_request.head.sha || github.ref }}
37+
38+
- name: Setup pnpm
39+
uses: pnpm/action-setup@v4 # docs https://pnpm.io/continuous-integration#github-actions
40+
with:
41+
version: 10
42+
43+
- shell: bash
44+
run: pnpm i
3745

3846
- uses: snyk/actions/node@b98d498629f1c368650224d6d212bf7dfa89e4bf # pin@0.4.0
3947
env:

0 commit comments

Comments
 (0)