Skip to content

Commit 46ffea2

Browse files
committed
update action
1 parent 6390e07 commit 46ffea2

File tree

11 files changed

+157
-159
lines changed

11 files changed

+157
-159
lines changed

.github/workflows/build_test_deploy.yml

Lines changed: 126 additions & 126 deletions
Large diffs are not rendered by default.

packages/create-next-app/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
"dev": "ncc build ./index.ts -w -o dist/",
2525
"prerelease": "rimraf ./dist/",
2626
"release": "ncc build ./index.ts -o ./dist/ --minify --no-cache --no-source-map-register",
27-
"prepublishOnly": "cd ../../ && turbo run build",
2827
"build": "pnpm release"
2928
},
3029
"devDependencies": {

packages/next-codemod/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
],
2121
"scripts": {
2222
"build": "pnpm tsc -d -p tsconfig.json",
23-
"prepublishOnly": "cd ../../ && turbo run build",
2423
"dev": "pnpm tsc -d -w -p tsconfig.json",
2524
"test": "jest"
2625
},

packages/next-env/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@
2626
"prerelease": "rimraf ./dist/",
2727
"types": "tsc index.ts --declaration --emitDeclarationOnly --declarationDir types --esModuleInterop",
2828
"release": "ncc build ./index.ts -o ./dist/ --minify --no-cache --no-source-map-register",
29-
"build": "pnpm release && pnpm types",
30-
"prepublishOnly": "cd ../../ && turbo run build"
29+
"build": "pnpm release && pnpm types"
3130
},
3231
"devDependencies": {
3332
"@vercel/ncc": "0.34.0",

packages/next-polyfill-module/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99
"directory": "packages/next-polyfill-module"
1010
},
1111
"scripts": {
12-
"build": "microbundle -i src/index.js -o dist/polyfill-module.js -f iife --no-sourcemap --external none --no-pkg-main",
13-
"prepublishOnly": "cd ../../ && turbo run build"
12+
"build": "microbundle -i src/index.js -o dist/polyfill-module.js -f iife --no-sourcemap --external none --no-pkg-main"
1413
},
1514
"devDependencies": {
1615
"microbundle": "0.15.0"

packages/next-polyfill-nomodule/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99
"directory": "packages/next-polyfill-nomodule"
1010
},
1111
"scripts": {
12-
"build": "microbundle -i src/index.js -o dist/polyfill-nomodule.js -f iife --no-sourcemap --external none --no-pkg-main",
13-
"prepublishOnly": "cd ../../ && turbo run build"
12+
"build": "microbundle -i src/index.js -o dist/polyfill-nomodule.js -f iife --no-sourcemap --external none --no-pkg-main"
1413
},
1514
"devDependencies": {
1615
"core-js": "3.6.5",

packages/next/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@
5656
"dev": "taskr",
5757
"release": "taskr release",
5858
"build": "pnpm release && pnpm types",
59-
"prepublishOnly": "cd ../../ && turbo run build",
6059
"types": "tsc --declaration --emitDeclarationOnly --declarationDir dist",
6160
"typescript": "tsec --noEmit",
6261
"ncc-compiled": "ncc cache clean && taskr ncc"

packages/react-dev-overlay/package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@
1313
"license": "MIT",
1414
"scripts": {
1515
"build": "rm -rf dist && tsc -d -p tsconfig.json",
16-
"prepublishOnly": "cd ../../ && turbo run build",
17-
"dev": "tsc -d -w -p tsconfig.json",
18-
"typescript": "tsec --noEmit -p tsconfig.json"
16+
"dev": "tsc -d -w -p tsconfig.json"
1917
},
2018
"dependencies": {
2119
"@babel/code-frame": "7.12.11",

packages/react-refresh-utils/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
"license": "MIT",
1414
"scripts": {
1515
"build": "rm -rf dist && tsc -d -p tsconfig.json",
16-
"prepublishOnly": "cd ../../ && turbo run build",
1716
"dev": "tsc -d -w -p tsconfig.json"
1817
},
1918
"peerDependencies": {

scripts/publish-native.js

Lines changed: 25 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ const cwd = process.cwd()
4848
} catch (err) {
4949
// don't block publishing other versions on single platform error
5050
console.error(`Failed to publish`, platform)
51-
throw err
51+
// throw err
5252
}
5353
// lerna publish in next step will fail if git status is not clean
5454
execSync(
@@ -63,24 +63,31 @@ const cwd = process.cwd()
6363
// Update name/version of wasm packages and publish
6464
let wasmDir = path.join(cwd, 'packages/next-swc/crates/wasm')
6565
for (let wasmTarget of ['web', 'nodejs']) {
66-
let wasmPkg = JSON.parse(
67-
await readFile(path.join(wasmDir, `pkg-${wasmTarget}/package.json`))
68-
)
69-
wasmPkg.name = `@next/swc-wasm-${wasmTarget}`
70-
wasmPkg.version = version
66+
try {
67+
let wasmPkg = JSON.parse(
68+
await readFile(path.join(wasmDir, `pkg-${wasmTarget}/package.json`))
69+
)
70+
wasmPkg.name = `@next/swc-wasm-${wasmTarget}`
71+
wasmPkg.version = version
7172

72-
await writeFile(
73-
path.join(wasmDir, `pkg-${wasmTarget}/package.json`),
74-
JSON.stringify(wasmPkg, null, 2)
75-
)
76-
execSync(
77-
`npm publish ${path.join(
78-
wasmDir,
79-
`pkg-${wasmTarget}`
80-
)} --access public ${
81-
gitref.includes('canary') ? ' --tag next-12-3-2' : '--tag next-12-3-2'
82-
}`
83-
)
73+
await writeFile(
74+
path.join(wasmDir, `pkg-${wasmTarget}/package.json`),
75+
JSON.stringify(wasmPkg, null, 2)
76+
)
77+
execSync(
78+
`npm publish ${path.join(
79+
wasmDir,
80+
`pkg-${wasmTarget}`
81+
)} --access public ${
82+
gitref.includes('canary')
83+
? ' --tag next-12-3-2'
84+
: '--tag next-12-3-2'
85+
}`
86+
)
87+
} catch (err) {
88+
console.error(`Failed to publish`, { wasmTarget })
89+
// throw err
90+
}
8491
}
8592

8693
// Update optional dependencies versions

0 commit comments

Comments
 (0)