Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/npm-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:

- name: Publish if version changed
run: |
npm install -g pnpm@11.6.0
npm install -g pnpm@9
pnpm install

for dir in packages/*/ packages/networks/*/; do
Expand All @@ -42,7 +42,7 @@ jobs:

if [ "$PREVIOUS_VERSION" != "$CURRENT_VERSION" ]; then
echo "Version changed for $PACKAGE_NAME from $PREVIOUS_VERSION to $CURRENT_VERSION"
npm publish
pnpm install && npm publish
fi
else
echo "package.json not found in $dir"
Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/test-and-lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,17 @@ jobs:

- name: Install dependencies
run: |
npm install -g pnpm@11.6.0
npm install -g pnpm@9
pnpm install

for dir in packages/*/ packages/networks/*/; do
if [ -d "$dir" ] && [ "$(basename "$dir")" != "boilerplate" ]; then
cd "$dir" || exit
pnpm install
cd - || exit
fi
done

- name: Runt lint
run: npm run lint

Expand Down
9 changes: 4 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
{
"name": "js",
"version": "0.0.0",
"private": true,
"type": "module",
"packageManager": "pnpm@11.6.0",
"scripts": {
"dev": "vite",
"test": "vitest",
Expand All @@ -12,8 +10,8 @@
"format": "prettier --write packages/",
"lint": "eslint . --ext .ts --ignore-path .gitignore",
"lint:fix": "eslint . --ext .ts --ignore-path .gitignore --fix",
"install:all": "pnpm install",
"build:all": "pnpm -r --if-present --filter './packages/**' --filter '!./packages/networks/boilerplate' run build"
"install:all": "pnpm install && for dir in packages/*/ packages/networks/*/; do if [ -d \"$dir\" ] && [ \"$(basename \"$dir\")\" != \"boilerplate\" ]; then cd \"$dir\" && pnpm install && cd -; fi; done",
"build:all": "for dir in packages/*/ packages/networks/*/; do if [ -f \"$dir/package.json\" ] && [ \"$(basename \"$dir\")\" != \"boilerplate\" ] && grep -q '\"build\":' \"$dir/package.json\" 2>/dev/null; then (cd \"$dir\" && pnpm run build) || exit 1; fi; done"
},
"devDependencies": {
"@rollup/plugin-strip": "^3.0.4",
Expand Down Expand Up @@ -43,5 +41,6 @@
},
"dependencies": {
"@multiplechain/utils": "^0.1.24"
}
},
"packageManager": "pnpm@9.15.9+sha512.68046141893c66fad01c079231128e9afb89ef87e2691d69e4d40eee228988295fd4682181bae55b58418c3a253bde65a505ec7c5f9403ece5cc3cd37dcf2531"
}
2 changes: 1 addition & 1 deletion packages/networks/bitcoin/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@multiplechain/bitcoin",
"version": "0.4.26",
"version": "0.4.27",
"type": "module",
"main": "dist/index.cjs",
"module": "dist/index.es.js",
Expand Down
Loading
Loading