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
8 changes: 6 additions & 2 deletions .github/actions/install-dependencies/action.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: "Install Dependencies"
description: "Install dependencies, fetching from cache when possible"
inputs:
node-version:
description: the version of Node.js to install
default: 20.18.0

runs:
using: "composite"
Expand All @@ -9,10 +13,10 @@ runs:
with:
version: 9

- name: Install Node.js
- name: Install Node.js ${{ inputs.node-version }}
uses: actions/setup-node@v4
with:
node-version: 20.18.0
node-version: ${{ inputs.node-version }}
cache: "pnpm"
registry-url: "https://registry.npmjs.org"

Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/changesets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on:
branches:
- main

permissions:
id-token: write
contents: read

jobs:
release:
if: ${{ github.repository_owner == 'opennextjs' }}
Expand All @@ -20,6 +24,10 @@ jobs:

- 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 Cloudflare package
run: pnpm run build
Expand All @@ -31,5 +39,4 @@ jobs:
publish: pnpm exec changeset publish
env:
GITHUB_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
NODE_ENV: "production"