Skip to content

Commit

Permalink
fix publish & trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
mayank1513 committed May 7, 2024
1 parent a1b82d4 commit bae47da
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
3 changes: 2 additions & 1 deletion lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "react18-loaders",
"author": "Mayank Kumar Chaudhari <https://mayank-chaudhari.vercel.app>",
"private": false,
"version": "1.0.0-canary.1",
"version": "1.0.0",
"description": "A comprehensive library that unleashes the full potential of React 18 server components, providing customizable loading animation components alongside a fullscreen loader container. Designed to seamlessly integrate with React and Next.js.",
"license": "MPL-2.0",
"main": "./dist/index.js",
Expand Down Expand Up @@ -70,6 +70,7 @@
"Loading animations",
"Fullscreen loader",
"React",
"React Loaders",
"React 18",
"React 19",
"Next.js",
Expand Down
12 changes: 8 additions & 4 deletions scripts/publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,14 @@ const { execSync } = require("child_process");
try {
execSync("pnpm changeset pre exit");
} catch {}
execSync("pnpm changeset version");
execSync(
`git add . && git commit -m "Apply changesets and update CHANGELOG" && git push origin ${process.env.BRANCH}`,
);
try {
execSync("pnpm changeset version");
execSync(
`git add . && git commit -m "Apply changesets and update CHANGELOG" && git push origin ${process.env.BRANCH}`,
);
} catch {
// no changesets to be applied
}

const LATEST_VERSION = execSync("npm view react18-loaders version").toString();
const VERSION = require("../lib/package.json").version;
Expand Down

0 comments on commit bae47da

Please sign in to comment.