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
9ab11664
Unverified
Commit
9ab11664
authored
Oct 27, 2022
by
JJ Kasper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
apply changes for publish
parent
e7208a12
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
6 deletions
+11
-6
build_test_deploy.yml
.github/workflows/build_test_deploy.yml
+1
-1
lerna.json
lerna.json
+2
-1
publish-native.js
scripts/publish-native.js
+6
-2
publish-release.sh
scripts/publish-release.sh
+2
-2
No files found.
.github/workflows/build_test_deploy.yml
View file @
9ab11664
on
:
on
:
push
:
push
:
branches
:
[
canary
]
branches
:
[
canary
,
next-12-3-2
]
pull_request
:
pull_request
:
types
:
[
opened
,
synchronize
]
types
:
[
opened
,
synchronize
]
...
...
lerna.json
View file @
9ab11664
...
@@ -11,7 +11,8 @@
...
@@ -11,7 +11,8 @@
"publish"
:
{
"publish"
:
{
"npmClient"
:
"npm"
,
"npmClient"
:
"npm"
,
"allowBranch"
:
[
"allowBranch"
:
[
"canary"
"canary"
,
"next-12-3-2"
],
],
"registry"
:
"https://registry.npmjs.org/"
"registry"
:
"https://registry.npmjs.org/"
}
}
...
...
scripts/publish-native.js
View file @
9ab11664
...
@@ -40,7 +40,9 @@ const cwd = process.cwd()
...
@@ -40,7 +40,9 @@ const cwd = process.cwd()
nativePackagesDir
,
nativePackagesDir
,
platform
platform
)}
--access public
${
)}
--access public
${
gitref
.
includes
(
'canary'
)
?
' --tag canary'
:
''
gitref
.
includes
(
'canary'
)
?
' --tag next-12-3-2'
:
'--tag next-12-3-2'
}
`
}
`
)
)
}
catch
(
err
)
{
}
catch
(
err
)
{
...
@@ -75,7 +77,9 @@ const cwd = process.cwd()
...
@@ -75,7 +77,9 @@ const cwd = process.cwd()
`npm publish
${
path
.
join
(
`npm publish
${
path
.
join
(
wasmDir
,
wasmDir
,
`pkg-
${
wasmTarget
}
`
`pkg-
${
wasmTarget
}
`
)}
--access public
${
gitref
.
includes
(
'canary'
)
?
' --tag canary'
:
''
}
`
)}
--access public
${
gitref
.
includes
(
'canary'
)
?
' --tag next-12-3-2'
:
'--tag next-12-3-2'
}
`
)
)
}
}
...
...
scripts/publish-release.sh
View file @
9ab11664
...
@@ -15,7 +15,7 @@ fi
...
@@ -15,7 +15,7 @@ fi
if
[[
$(
git describe
--exact-match
2> /dev/null
||
:
)
=
~
-canary
]]
;
if
[[
$(
git describe
--exact-match
2> /dev/null
||
:
)
=
~
-canary
]]
;
then
then
echo
"Publishing canary"
echo
"Publishing canary"
yarn run lerna publish from-git
--npm-tag
canary
--no-git-reset
--no-verify-access
--yes
yarn run 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
# Make sure to exit script with code 1 if publish failed
if
[[
!
$?
-eq
0
]]
;
then
if
[[
!
$?
-eq
0
]]
;
then
...
@@ -27,7 +27,7 @@ fi
...
@@ -27,7 +27,7 @@ fi
if
[[
!
$(
git describe
--exact-match
2> /dev/null
||
:
)
=
~
-canary
]]
;
then
if
[[
!
$(
git describe
--exact-match
2> /dev/null
||
:
)
=
~
-canary
]]
;
then
echo
"Publishing stable"
echo
"Publishing stable"
yarn run lerna publish from-git
--no-git-reset
--no-verify-access
--yes
yarn run lerna publish from-git
--no-git-reset
--n
pm-tag
next-12-3-2
--n
o-verify-access
--yes
# Make sure to exit script with code 1 if publish failed
# Make sure to exit script with code 1 if publish failed
if
[[
!
$?
-eq
0
]]
;
then
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