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
6 changes: 3 additions & 3 deletions .github/workflows/npm-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
node-version: '22'

- name: Login to npm registry
run: npm config set //registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN
Expand All @@ -26,7 +26,7 @@ jobs:

- name: Publish if version changed
run: |
npm install -g pnpm
npm install -g pnpm@11.6.0
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"
pnpm install && npm publish
npm publish
fi
else
echo "package.json not found in $dir"
Expand Down
12 changes: 2 additions & 10 deletions .github/workflows/test-and-lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,24 +17,16 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
node-version: '22'

- name: Create .env file
run: cp .env.example .env

- name: Install dependencies
run: |
npm install -g pnpm
npm install -g pnpm@11.6.0
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
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
{
"name": "js",
"version": "0.0.0",
"private": true,
"type": "module",
"packageManager": "pnpm@11.6.0",
"scripts": {
"dev": "vite",
"test": "vitest",
"test-ui": "vitest watch --ui",
"coverage": "vitest run --coverage",
"format": "prettier --write packages/",
"lint": "eslint . --ext .ts --ignore-path .gitignore",
"lint:fix": "eslint . --ext .ts --ignore-path .gitignore --fix"
"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"
},
"devDependencies": {
"@rollup/plugin-strip": "^3.0.4",
Expand Down
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.25",
"version": "0.4.26",
"type": "module",
"main": "dist/index.cjs",
"module": "dist/index.es.js",
Expand Down
Loading
Loading