-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into rc-dbauth-crypto
- Loading branch information
Showing
62 changed files
with
2,158 additions
and
174 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
name: Streaming-SSR Related Changes | ||
description: Determines if the PR makes any changes related to SSR or streaming | ||
outputs: | ||
rsc-related-changes: | ||
description: If the PR makes any SSR related changes | ||
runs: | ||
using: node20 | ||
main: ssr_related_changes.mjs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"name": "ssr_related_changes", | ||
"private": true, | ||
"dependencies": { | ||
"@actions/core": "1.10.0", | ||
"@actions/exec": "1.1.1" | ||
}, | ||
"packageManager": "[email protected]" | ||
} |
43 changes: 43 additions & 0 deletions
43
.github/actions/ssr_related_changes/ssr_related_changes.mjs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
import core from '@actions/core' | ||
import { exec, getExecOutput } from '@actions/exec' | ||
|
||
async function main() { | ||
const branch = process.env.GITHUB_BASE_REF | ||
|
||
// If there is no branch, we're not in a pull request | ||
if (!branch) { | ||
core.setOutput('ssr-related-changes', false) | ||
return | ||
} | ||
|
||
await exec(`git fetch origin ${branch}`) | ||
|
||
const { stdout } = await getExecOutput( | ||
`git diff origin/${branch} --name-only` | ||
) | ||
|
||
const changedFiles = stdout.toString().trim().split('\n').filter(Boolean) | ||
|
||
for (const changedFile of changedFiles) { | ||
console.log('changedFile', changedFile) | ||
|
||
if ( | ||
changedFile.startsWith('tasks/smoke-tests/streaming-ssr') || | ||
changedFile.startsWith('tasks/smoke-tests/basePlaywright.config.ts') || | ||
changedFile.startsWith('github/actions/ssr_related_changes/') || | ||
changedFile.startsWith('packages/internal/') || | ||
changedFile.startsWith('packages/project-config/') || | ||
changedFile.startsWith('packages/web/') || | ||
changedFile.startsWith('packages/router/') || | ||
changedFile.startsWith('packages/web-server/') || | ||
changedFile.startsWith('packages/vite/') | ||
) { | ||
core.setOutput('ssr-related-changes', true) | ||
return | ||
} | ||
} | ||
|
||
core.setOutput('ssr-related-changes', false) | ||
} | ||
|
||
main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
# This file is generated by running "yarn install" inside your project. | ||
# Manual changes might be lost - proceed with caution! | ||
|
||
__metadata: | ||
version: 6 | ||
cacheKey: 8c0 | ||
|
||
"@actions/core@npm:1.10.0": | ||
version: 1.10.0 | ||
resolution: "@actions/core@npm:1.10.0" | ||
dependencies: | ||
"@actions/http-client": ^2.0.1 | ||
uuid: ^8.3.2 | ||
checksum: 9214d1e0cf5cf2a5d48b8f3b12488c6be9f6722ea60f2397409226e8410b5a3e12e558d9b66c93469d180399865ec20180119408a1770f026bd9ecac6965fcda | ||
languageName: node | ||
linkType: hard | ||
|
||
"@actions/exec@npm:1.1.1": | ||
version: 1.1.1 | ||
resolution: "@actions/exec@npm:1.1.1" | ||
dependencies: | ||
"@actions/io": ^1.0.1 | ||
checksum: 4a09f6bdbe50ce68b5cf8a7254d176230d6a74bccf6ecc3857feee209a8c950ba9adec87cc5ecceb04110182d1c17117234e45557d72fde6229b7fd3a395322a | ||
languageName: node | ||
linkType: hard | ||
|
||
"@actions/http-client@npm:^2.0.1": | ||
version: 2.0.1 | ||
resolution: "@actions/http-client@npm:2.0.1" | ||
dependencies: | ||
tunnel: ^0.0.6 | ||
checksum: b58987ba2f53d7988f612ede7ff834573a3360c21f8fdea9fea92f26ada0fd0efafb22aa7d83f49c18965a5b765775d5253e2edb8d9476d924c4b304ef726b67 | ||
languageName: node | ||
linkType: hard | ||
|
||
"@actions/io@npm:^1.0.1": | ||
version: 1.1.2 | ||
resolution: "@actions/io@npm:1.1.2" | ||
checksum: 61c871bbee1cf58f57917d9bb2cf6bb7ea4dc40de3f65c7fb4ec619ceff57fc98f56be9cca2d476b09e7a96e1cba0d88cd125c4f690d384b9483935186f256c1 | ||
languageName: node | ||
linkType: hard | ||
|
||
"ssr_related_changes@workspace:.": | ||
version: 0.0.0-use.local | ||
resolution: "ssr_related_changes@workspace:." | ||
dependencies: | ||
"@actions/core": 1.10.0 | ||
"@actions/exec": 1.1.1 | ||
languageName: unknown | ||
linkType: soft | ||
|
||
"tunnel@npm:^0.0.6": | ||
version: 0.0.6 | ||
resolution: "tunnel@npm:0.0.6" | ||
checksum: e27e7e896f2426c1c747325b5f54efebc1a004647d853fad892b46d64e37591ccd0b97439470795e5262b5c0748d22beb4489a04a0a448029636670bfd801b75 | ||
languageName: node | ||
linkType: hard | ||
|
||
"uuid@npm:^8.3.2": | ||
version: 8.3.2 | ||
resolution: "uuid@npm:8.3.2" | ||
bin: | ||
uuid: dist/bin/uuid | ||
checksum: bcbb807a917d374a49f475fae2e87fdca7da5e5530820ef53f65ba1d12131bd81a92ecf259cc7ce317cbe0f289e7d79fdfebcef9bfa3087c8c8a2fa304c9be54 | ||
languageName: node | ||
linkType: hard |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,3 +17,4 @@ plugins: | |
preferInteractive: true | ||
|
||
yarnPath: .yarn/releases/yarn-3.6.3.cjs | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.