mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-24 10:27:10 +02:00
Tools: Fixed npm publish
This commit is contained in:
parent
7b90c586cd
commit
9a7ee239d0
@ -5,7 +5,7 @@ SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
cd "$SCRIPT_DIR"
|
||||
yarn run buildAssets
|
||||
npm version patch
|
||||
yarn publish
|
||||
npm publish
|
||||
|
||||
NEW_VERSION=$(cat package.json | jq -r .version)
|
||||
git add -A
|
||||
|
@ -20,7 +20,7 @@ async function main() {
|
||||
|
||||
process.chdir(`${appDir}/build`);
|
||||
|
||||
await execCommand2('yarn publish');
|
||||
await execCommand2('npm publish');
|
||||
|
||||
await completeReleaseWithChangelog(changelogPath, newVersion, newTag, 'CLI', false);
|
||||
}
|
||||
|
@ -18,7 +18,7 @@ async function main() {
|
||||
|
||||
await setPackagePrivateField(packageFilePath, false);
|
||||
try {
|
||||
await execCommandVerbose('yarn', ['publish']);
|
||||
await execCommandVerbose('npm', ['publish']);
|
||||
} finally {
|
||||
await setPackagePrivateField(packageFilePath, true);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user