Skip to content

Commit

Permalink
Skip tests entirely in branch publish
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenpetryk committed Mar 25, 2024
1 parent 0b13bd2 commit c8fb49d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"start": "tsx scripts/dev.ts",
"test": "pnpm -s test:unit && pnpm -s test:e2e",
"test:unit": "jest",
"test:e2e": "if [ -z \"$SKIP_E2E\" ]; then tsx scripts/testgen.ts && playwright test; fi",
"test:e2e": "tsx scripts/testgen.ts && playwright test",
"build": "tsx scripts/build.ts",
"build:docs": "pnpm -s docgen && cd docs && pnpm -s build",
"docgen": "tsx scripts/docgen.ts",
Expand Down
5 changes: 3 additions & 2 deletions scripts/publish-branch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ const packageJson = JSON.parse(fs.readFileSync("package.json", "utf8"))
packageJson.version = version
fs.writeFileSync("package.json", JSON.stringify(packageJson, null, 2))

childProcess.execSync("npm publish --access public --tag experimental", {
childProcess.execSync("pnpm build", { stdio: "inherit" })
childProcess.execSync("npm publish --ignore-scripts --access public --tag experimental", {
stdio: "inherit",
env: { ...process.env, SKIP_E2E: "true" },
env: { ...process.env },
})

0 comments on commit c8fb49d

Please sign in to comment.