Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
46ffea25
Commit
46ffea25
authored
Mar 23, 2025
by
JJ Kasper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update action
parent
6390e074
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
157 additions
and
159 deletions
+157
-159
build_test_deploy.yml
.github/workflows/build_test_deploy.yml
+126
-126
package.json
packages/create-next-app/package.json
+0
-1
package.json
packages/next-codemod/package.json
+0
-1
package.json
packages/next-env/package.json
+1
-2
package.json
packages/next-polyfill-module/package.json
+1
-2
package.json
packages/next-polyfill-nomodule/package.json
+1
-2
package.json
packages/next/package.json
+0
-1
package.json
packages/react-dev-overlay/package.json
+1
-3
package.json
packages/react-refresh-utils/package.json
+0
-1
publish-native.js
scripts/publish-native.js
+25
-18
publish-release.sh
scripts/publish-release.sh
+2
-2
No files found.
.github/workflows/build_test_deploy.yml
View file @
46ffea25
This diff is collapsed.
Click to expand it.
packages/create-next-app/package.json
View file @
46ffea25
...
...
@@ -24,7 +24,6 @@
"dev"
:
"ncc build ./index.ts -w -o dist/"
,
"prerelease"
:
"rimraf ./dist/"
,
"release"
:
"ncc build ./index.ts -o ./dist/ --minify --no-cache --no-source-map-register"
,
"prepublishOnly"
:
"cd ../../ && turbo run build"
,
"build"
:
"pnpm release"
},
"devDependencies"
:
{
...
...
packages/next-codemod/package.json
View file @
46ffea25
...
...
@@ -20,7 +20,6 @@
],
"scripts"
:
{
"build"
:
"pnpm tsc -d -p tsconfig.json"
,
"prepublishOnly"
:
"cd ../../ && turbo run build"
,
"dev"
:
"pnpm tsc -d -w -p tsconfig.json"
,
"test"
:
"jest"
},
...
...
packages/next-env/package.json
View file @
46ffea25
...
...
@@ -26,8 +26,7 @@
"prerelease"
:
"rimraf ./dist/"
,
"types"
:
"tsc index.ts --declaration --emitDeclarationOnly --declarationDir types --esModuleInterop"
,
"release"
:
"ncc build ./index.ts -o ./dist/ --minify --no-cache --no-source-map-register"
,
"build"
:
"pnpm release && pnpm types"
,
"prepublishOnly"
:
"cd ../../ && turbo run build"
"build"
:
"pnpm release && pnpm types"
},
"devDependencies"
:
{
"@vercel/ncc"
:
"0.34.0"
,
...
...
packages/next-polyfill-module/package.json
View file @
46ffea25
...
...
@@ -9,8 +9,7 @@
"directory"
:
"packages/next-polyfill-module"
},
"scripts"
:
{
"build"
:
"microbundle -i src/index.js -o dist/polyfill-module.js -f iife --no-sourcemap --external none --no-pkg-main"
,
"prepublishOnly"
:
"cd ../../ && turbo run build"
"build"
:
"microbundle -i src/index.js -o dist/polyfill-module.js -f iife --no-sourcemap --external none --no-pkg-main"
},
"devDependencies"
:
{
"microbundle"
:
"0.15.0"
...
...
packages/next-polyfill-nomodule/package.json
View file @
46ffea25
...
...
@@ -9,8 +9,7 @@
"directory"
:
"packages/next-polyfill-nomodule"
},
"scripts"
:
{
"build"
:
"microbundle -i src/index.js -o dist/polyfill-nomodule.js -f iife --no-sourcemap --external none --no-pkg-main"
,
"prepublishOnly"
:
"cd ../../ && turbo run build"
"build"
:
"microbundle -i src/index.js -o dist/polyfill-nomodule.js -f iife --no-sourcemap --external none --no-pkg-main"
},
"devDependencies"
:
{
"core-js"
:
"3.6.5"
,
...
...
packages/next/package.json
View file @
46ffea25
...
...
@@ -56,7 +56,6 @@
"dev"
:
"taskr"
,
"release"
:
"taskr release"
,
"build"
:
"pnpm release && pnpm types"
,
"prepublishOnly"
:
"cd ../../ && turbo run build"
,
"types"
:
"tsc --declaration --emitDeclarationOnly --declarationDir dist"
,
"typescript"
:
"tsec --noEmit"
,
"ncc-compiled"
:
"ncc cache clean && taskr ncc"
...
...
packages/react-dev-overlay/package.json
View file @
46ffea25
...
...
@@ -13,9 +13,7 @@
"license"
:
"MIT"
,
"scripts"
:
{
"build"
:
"rm -rf dist && tsc -d -p tsconfig.json"
,
"prepublishOnly"
:
"cd ../../ && turbo run build"
,
"dev"
:
"tsc -d -w -p tsconfig.json"
,
"typescript"
:
"tsec --noEmit -p tsconfig.json"
"dev"
:
"tsc -d -w -p tsconfig.json"
},
"dependencies"
:
{
"@babel/code-frame"
:
"7.12.11"
,
...
...
packages/react-refresh-utils/package.json
View file @
46ffea25
...
...
@@ -13,7 +13,6 @@
"license"
:
"MIT"
,
"scripts"
:
{
"build"
:
"rm -rf dist && tsc -d -p tsconfig.json"
,
"prepublishOnly"
:
"cd ../../ && turbo run build"
,
"dev"
:
"tsc -d -w -p tsconfig.json"
},
"peerDependencies"
:
{
...
...
scripts/publish-native.js
View file @
46ffea25
...
...
@@ -48,7 +48,7 @@ const cwd = process.cwd()
}
catch
(
err
)
{
// don't block publishing other versions on single platform error
console
.
error
(
`Failed to publish`
,
platform
)
throw
err
//
throw err
}
// lerna publish in next step will fail if git status is not clean
execSync
(
...
...
@@ -63,24 +63,31 @@ const cwd = process.cwd()
// Update name/version of wasm packages and publish
let
wasmDir
=
path
.
join
(
cwd
,
'packages/next-swc/crates/wasm'
)
for
(
let
wasmTarget
of
[
'web'
,
'nodejs'
])
{
let
wasmPkg
=
JSON
.
parse
(
await
readFile
(
path
.
join
(
wasmDir
,
`pkg-
${
wasmTarget
}
/package.json`
))
)
wasmPkg
.
name
=
`@next/swc-wasm-
${
wasmTarget
}
`
wasmPkg
.
version
=
version
try
{
let
wasmPkg
=
JSON
.
parse
(
await
readFile
(
path
.
join
(
wasmDir
,
`pkg-
${
wasmTarget
}
/package.json`
))
)
wasmPkg
.
name
=
`@next/swc-wasm-
${
wasmTarget
}
`
wasmPkg
.
version
=
version
await
writeFile
(
path
.
join
(
wasmDir
,
`pkg-
${
wasmTarget
}
/package.json`
),
JSON
.
stringify
(
wasmPkg
,
null
,
2
)
)
execSync
(
`npm publish
${
path
.
join
(
wasmDir
,
`pkg-
${
wasmTarget
}
`
)}
--access public
${
gitref
.
includes
(
'canary'
)
?
' --tag next-12-3-2'
:
'--tag next-12-3-2'
}
`
)
await
writeFile
(
path
.
join
(
wasmDir
,
`pkg-
${
wasmTarget
}
/package.json`
),
JSON
.
stringify
(
wasmPkg
,
null
,
2
)
)
execSync
(
`npm publish
${
path
.
join
(
wasmDir
,
`pkg-
${
wasmTarget
}
`
)}
--access public
${
gitref
.
includes
(
'canary'
)
?
' --tag next-12-3-2'
:
'--tag next-12-3-2'
}
`
)
}
catch
(
err
)
{
console
.
error
(
`Failed to publish`
,
{
wasmTarget
})
// throw err
}
}
// Update optional dependencies versions
...
...
scripts/publish-release.sh
View file @
46ffea25
...
...
@@ -15,7 +15,7 @@ fi
if
[[
$(
git describe
--exact-match
2> /dev/null
||
:
)
=
~
-canary
]]
;
then
echo
"Publishing canary"
yarn run
lerna publish from-git
--npm-tag
next-12-3-2
--no-git-reset
--no-verify-access
--yes
./node_modules/.bin/
lerna publish from-git
--npm-tag
next-12-3-2
--no-git-reset
--no-verify-access
--yes
# Make sure to exit script with code 1 if publish failed
if
[[
!
$?
-eq
0
]]
;
then
...
...
@@ -27,7 +27,7 @@ fi
if
[[
!
$(
git describe
--exact-match
2> /dev/null
||
:
)
=
~
-canary
]]
;
then
echo
"Publishing stable"
yarn run
lerna publish from-git
--no-git-reset
--npm-tag
next-12-3-2
--no-verify-access
--yes
./node_modules/.bin/
lerna publish from-git
--no-git-reset
--npm-tag
next-12-3-2
--no-verify-access
--yes
# Make sure to exit script with code 1 if publish failed
if
[[
!
$?
-eq
0
]]
;
then
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment