Skip to content

Commit

Permalink
Fix CI (#2077)
Browse files Browse the repository at this point in the history
  • Loading branch information
jribbink committed Jan 27, 2025
1 parent d6f3010 commit 05c441d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
12 changes: 9 additions & 3 deletions .github/scripts/prevent-major-bumps.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,15 @@ for (const packageJson of packageJsons) {
const newVersion = newPackageJson.version

// Get the version from the main branch (or latest release)
const prevPackageJson = JSON.parse(
execSync(`git show origin/master:${packageJson}`).toString()
)
let prevPackageJson
try {
prevPackageJson = JSON.parse(
execSync(`git show origin/master:${packageJson}`).toString()
)
} catch (error) {
console.info("Skipping new package", newPackageName)
continue
}
const prevPackageName = prevPackageJson.name
const prevVersion = prevPackageJson.version

Expand Down
10 changes: 5 additions & 5 deletions packages/fcl-ethereum-provider/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@
"eslint-plugin-jsdoc": "^46.10.1",
"jest": "^29.7.0"
},
"source": "src/util-uid.ts",
"main": "dist/util-uid.js",
"module": "dist/util-uid.module.js",
"unpkg": "dist/util-uid.umd.js",
"types": "types/util-uid.d.ts",
"source": "src/index.ts",
"main": "dist/index.js",
"module": "dist/index.module.js",
"unpkg": "dist/index.umd.js",
"types": "types/index.d.ts",
"scripts": {
"prepublishOnly": "npm test && npm run build",
"test": "jest",
Expand Down

0 comments on commit 05c441d

Please sign in to comment.