Skip to content

Commit

Permalink
use npm to publish
Browse files Browse the repository at this point in the history
  • Loading branch information
dwelle committed Sep 27, 2023
1 parent 64b292a commit 6954a5f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,6 @@
"test:ui": "yarn test --ui",
"autorelease-fork": "node scripts/autorelease-fork.js",
"pull": "git pull upstream master --rebase",
"publish": "yarn --frozen-lockfile && cd src/packages/excalidraw && yarn --frozen-lockfile && npm run build:umd && yarn publish"
"publish": "yarn --frozen-lockfile && cd src/packages/excalidraw && yarn --frozen-lockfile && npm run build:umd && npm publish"
}
}
2 changes: 1 addition & 1 deletion scripts/autorelease-fork.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const publish = () => {
execSync(`yarn --frozen-lockfile`);
execSync(`yarn --frozen-lockfile`, { cwd: excalidrawDir });
execSync(`yarn run build:umd`, { cwd: excalidrawDir });
execSync(`yarn --cwd ${excalidrawDir} publish`);
execSync(`npm --prefix ${excalidrawDir} publish`);
console.info(`Published ${pkg.name}@latest 🎉`);
core.setOutput(
"result",
Expand Down
2 changes: 1 addition & 1 deletion scripts/release.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const publish = () => {
execSync(`yarn --frozen-lockfile`);
execSync(`yarn --frozen-lockfile`, { cwd: excalidrawDir });
execSync(`yarn run build:umd`, { cwd: excalidrawDir });
execSync(`yarn --cwd ${excalidrawDir} publish`);
execSync(`npm --prefix ${excalidrawDir} publish`);
} catch (error) {
console.error(error);
process.exit(1);
Expand Down

0 comments on commit 6954a5f

Please sign in to comment.