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
50 changes: 0 additions & 50 deletions .changeset/aggregate.mjs

This file was deleted.

7 changes: 4 additions & 3 deletions .changeset/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@
"$schema": "https://unpkg.com/@changesets/config@2.3.0/schema.json",
"changelog": [
"@changesets/changelog-github",
{ "repo": "opennextjs/opennextjs-aws" }
{ "repo": "opennextjs/adapters-api" }
],
"commit": false,
"fixed": [["@opennextjs/aws"]],
"fixed": [],
"linked": [],
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
"ignore": [],
"privatePackages": false
}
8 changes: 0 additions & 8 deletions .changeset/release

This file was deleted.

4 changes: 0 additions & 4 deletions .changeset/version

This file was deleted.

31 changes: 0 additions & 31 deletions .github/actions/install-dependencies/action.yml

This file was deleted.

12 changes: 0 additions & 12 deletions .github/actions/lint/action.yml

This file was deleted.

9 changes: 0 additions & 9 deletions .github/actions/local/build/action.yml

This file was deleted.

38 changes: 0 additions & 38 deletions .github/actions/local/e2e/action.yml

This file was deleted.

51 changes: 17 additions & 34 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,47 +3,30 @@ description: Install's node, pnpm, restores cache, and then installs dependencie

inputs:
node-version:
default: 20.x
registry-url:
default: "https://registry.npmjs.org"
description: Node.js version to install
default: '24'

runs:
using: 'composite'
using: composite
steps:
# Install nodejs. https://github.com/actions/setup-node
- name: Setup Node.js
uses: actions/setup-node@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
node-version: ${{ inputs.node-version }}
registry-url: ${{ inputs.registry-url }}

# Ensure npm 11.5.1 or later is installed
# See https://docs.npmjs.com/trusted-publishers
# Note that pnpm publish runs npm publish
- name: Update npm
shell: bash
run: npm install -g npm@latest
version: 10

# Install pnpm. https://github.com/pnpm/action-setup
- uses: pnpm/action-setup@v4
- name: Install Node.js ${{ inputs.node-version }}
uses: actions/setup-node@v6
with:
version: 9
# run_install: false
node-version: ${{ inputs.node-version }}
registry-url: https://registry.npmjs.org
cache: pnpm
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: is this still needed with recent actions/setup-node ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's only enabled automatically for npm


# Get pnpm store path so we can cache it
- name: Get pnpm store directory
# Enable node compile cache (effective for Node 22+)
# See https://nodejs.org/docs/v24.11.1/api/module.html#module-compile-cache
- name: Enable Node Compile Cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV

- uses: actions/cache@v4
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
run: echo "NODE_COMPILE_CACHE=$HOME/.node_compile_cache" >> $GITHUB_ENV

- name: Install dependencies
run: pnpm install
shell: bash
shell: bash
run: pnpm install --frozen-lockfile
15 changes: 0 additions & 15 deletions .github/actions/test/action.yml

This file was deleted.

26 changes: 13 additions & 13 deletions .github/workflows/changesets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,28 +15,28 @@ jobs:
name: Handle Changesets
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- uses: actions/checkout@v6
with:
# See https://github.com/changesets/action/issues/187
token: ${{ secrets.GH_ACCESS_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}
fetch-depth: 0
- uses: ./.github/actions/setup

- name: Install Dependencies
uses: ./.github/actions/install-dependencies
with:
# Needs 24 to get a version of npm that can handle trusted publishers
# See https://docs.npmjs.com/trusted-publishers
node-version: 24
- name: Build packages
run: pnpm run build:opennext

- name: Build Cloudflare package
run: pnpm run build
# Ensure npm 11.5.1 or later is installed
# See https://docs.npmjs.com/trusted-publishers
# Note that pnpm publish runs npm publish
- name: Update npm
shell: bash
run: npm install -g npm@latest

- name: Create Version PR or Publish to NPM
id: changesets
uses: changesets/action@v1
with:
publish: pnpm exec changeset publish
env:
GITHUB_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }}
NODE_ENV: "production"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_ENV: production
11 changes: 6 additions & 5 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on:
branches: [main, experimental]
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
checks:
name: ${{ matrix.script }}
Expand All @@ -14,11 +18,8 @@ jobs:
matrix:
script: ["prettier:check", "lint:check", "ts:check", "test"]
steps:
- name: Check out code
uses: actions/checkout@v4

- name: Install Dependencies
uses: ./.github/actions/install-dependencies
- uses: actions/checkout@v6
- uses: ./.github/actions/setup

- name: ${{ matrix.script }}
run: pnpm run ${{ matrix.script }}
4 changes: 4 additions & 0 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ on:
branches:
- main

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

env:
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
PLAYWRIGHT_BROWSERS_PATH: 0
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,17 @@ on:
branches: [main]
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
test:
timeout-minutes: 30
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4

- name: Install Dependencies
uses: ./.github/actions/install-dependencies
- uses: actions/checkout@v6
- uses: ./.github/actions/setup

- name: Install Playwright
uses: ./.github/actions/setup-playwright
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/prereleases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ jobs:
steps:
- uses: actions/checkout@v6
- uses: ./.github/actions/setup
with:
node-version: 24

- name: Build packages
run: pnpm build:opennext
Expand Down
Loading
Loading