1
0
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:
Laurent Cozic 2021-12-27 18:02:18 +01:00
parent 7b90c586cd
commit 9a7ee239d0
3 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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);
}

View File

@ -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);
}