Skip to content

Commit 3e17f89

Browse files
committed
chore: pre-release the adapters-api branch
1 parent 9f7f662 commit 3e17f89

File tree

3 files changed

+14
-15
lines changed

3 files changed

+14
-15
lines changed

.github/actions/setup/action.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,21 @@
11
name: Install & setup
22
description: Install's node, pnpm, restores cache, and then installs dependencies
33

4+
inputs:
5+
node-version:
6+
default: 18.x
7+
registry-url:
8+
default: "https://registry.npmjs.org"
9+
410
runs:
511
using: 'composite'
612
steps:
713
# Install nodejs. https://github.com/actions/setup-node
814
- name: Setup Node.js
915
uses: actions/setup-node@v4
1016
with:
11-
node-version: 18.x
17+
node-version: ${{ inputs.node-version }}
18+
registry-url: ${{ inputs.registry-url }}
1219

1320
# Install pnpm. https://github.com/pnpm/action-setup
1421
- uses: pnpm/action-setup@v4

.github/workflows/pre-release.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ name: Pre-release
22

33
on:
44
pull_request:
5-
branches: [main, experimental]
5+
branches: [main, experimental, adapters-api]
66
paths:
77
- packages/open-next/**
88
push:
9-
branches: [main, experimental]
9+
branches: [main, experimental, adapters-api]
1010
paths:
1111
- packages/open-next/**
1212

@@ -19,15 +19,10 @@ jobs:
1919
# https://github.com/actions/checkout
2020
uses: actions/checkout@v4
2121

22-
# Setup .npmrc file to publish to npm
23-
- uses: actions/setup-node@v4
24-
with:
25-
registry-url: "https://registry.npmjs.org"
26-
2722
- uses: ./.github/actions/setup
23+
with:
24+
node-version: 22
2825

29-
- name: Install dependencies
30-
run: pnpm install
3126

3227
- name: Build package
3328
run: pnpm -F @opennextjs/aws build

.github/workflows/v2-release.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,9 @@ jobs:
1111
# https://github.com/actions/checkout
1212
uses: actions/checkout@v4
1313

14-
# Setup .npmrc file to publish to npm
15-
- uses: actions/setup-node@v4
16-
with:
17-
registry-url: "https://registry.npmjs.org"
18-
1914
- uses: ./.github/actions/setup
15+
with:
16+
node-version: 22
2017

2118
- name: Publish Pre-release to npm
2219
run: pnpm release-v2

0 commit comments

Comments
 (0)