Skip to content

Commit 8871447

Browse files
authored
chore: pre-release the adapters-api branch (#1024)
1 parent 9f7f662 commit 8871447

File tree

6 files changed

+22
-13
lines changed

6 files changed

+22
-13
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/docs.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ jobs:
2525
steps:
2626
- name: Checkout
2727
uses: actions/checkout@v4
28+
with:
29+
fetch-depth: 0
2830
- name: Setup Pages
2931
uses: actions/configure-pages@v5
3032
- name: Upload artifact

.github/workflows/e2e.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ jobs:
7777
steps:
7878
- name: Checkout code
7979
uses: actions/checkout@v4
80+
with:
81+
fetch-depth: 0
8082

8183
- name: Configure AWS credentials
8284
uses: aws-actions/configure-aws-credentials@v2

.github/workflows/pre-release.yml

Lines changed: 5 additions & 8 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

@@ -18,16 +18,13 @@ jobs:
1818
- name: Checkout Repo
1919
# https://github.com/actions/checkout
2020
uses: actions/checkout@v4
21-
22-
# Setup .npmrc file to publish to npm
23-
- uses: actions/setup-node@v4
2421
with:
25-
registry-url: "https://registry.npmjs.org"
22+
fetch-depth: 0
2623

2724
- uses: ./.github/actions/setup
25+
with:
26+
node-version: 22
2827

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

3229
- name: Build package
3330
run: pnpm -F @opennextjs/aws build

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ jobs:
1515
- name: Checkout Repo
1616
# https://github.com/actions/checkout
1717
uses: actions/checkout@v4
18+
with:
19+
fetch-depth: 0
1820

1921
- uses: ./.github/actions/setup
2022
- uses: ./.github/actions/lint

.github/workflows/v2-release.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,12 @@ jobs:
1010
- name: Checkout Repo
1111
# https://github.com/actions/checkout
1212
uses: actions/checkout@v4
13-
14-
# Setup .npmrc file to publish to npm
15-
- uses: actions/setup-node@v4
1613
with:
17-
registry-url: "https://registry.npmjs.org"
14+
fetch-depth: 0
1815

1916
- uses: ./.github/actions/setup
17+
with:
18+
node-version: 22
2019

2120
- name: Publish Pre-release to npm
2221
run: pnpm release-v2

0 commit comments

Comments
 (0)