Skip to content

Commit

Permalink
ci: use h3-nightly@latest for edge releases (#1563)
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 authored Aug 11, 2023
1 parent 75ddbf4 commit aa4a0af
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"resolutions": {
"nitropack": "link:.",
"undici": "^5.23.0",
"h3": "npm:h3-nightly@1.8.0-1691512197.ffab809"
"h3": "npm:h3-nightly@latest"
},
"dependencies": {
"@cloudflare/kv-asset-handler": "^0.3.0",
Expand Down
14 changes: 7 additions & 7 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 8 additions & 1 deletion scripts/bump-edge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ import { execaCommand } from "execa";
import { resolve } from "pathe";
import { globby } from "globby";

// Temporary forked from nuxt/nuxt
const nightlyPackages = {
h3: "h3-nightly",
};

async function loadPackage(dir: string) {
const pkgPath = resolve(dir, "package.json");
Expand Down Expand Up @@ -117,6 +119,11 @@ async function main() {
`${pkg.data.version}-${date}.${commit}`
);
workspace.rename(pkg.data.name, pkg.data.name + "-edge");
pkg.updateDeps((dep) => {
if (nightlyPackages[dep.name]) {
dep.range = "npm:" + nightlyPackages[dep.name] + "@latest";
}
});
}

await workspace.save();
Expand Down

0 comments on commit aa4a0af

Please sign in to comment.