Skip to content

Commit

Permalink
ci(publish): run in parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
Rubilmax committed Oct 17, 2024
1 parent c2885e9 commit 397d167
Show file tree
Hide file tree
Showing 18 changed files with 19 additions and 52 deletions.
37 changes: 2 additions & 35 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,38 +6,8 @@ on:
NPM_TOKEN:
required: true

# Limit concurrent workflows to avoid semantic-release failing because of out-of-date remote.
concurrency:
group: semantic-release

jobs:
publish:
strategy:
fail-fast: false
max-parallel: 1
matrix:
package:
- test
- test-viem
- test-ethers
- test-wagmi

- morpho-ts
- morpho-test

- blue-api-sdk
- blue-sdk
- blue-sdk-ethers
- blue-sdk-viem
- blue-sdk-wagmi

- simulation-sdk
- simulation-sdk-wagmi
- bundler-sdk-viem

- liquidation-sdk-viem

name: "@morpho-org/${{ matrix.package }}"
runs-on: ubuntu-latest

steps:
Expand All @@ -52,14 +22,11 @@ jobs:

- run: pnpm install

- run: |
package_json=$(jq '.release = input.release' packages/${{ matrix.package }}/package.json package.json)
echo "$package_json" > packages/${{ matrix.package }}/package.json
- run: pnpm -r --parallel --no-reporter-hide-prefix -c exec "jq '.release = input.release' package.json ../../package.json > tmp.json && mv tmp.json package.json"

- run: |
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
pnpm --filter @morpho-org/${{ matrix.package }} exec semantic-release
pnpm -r --parallel --no-reporter-hide-prefix exec semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2024 Morpho Labs
Copyright (c) 2024 Morpho Association

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.0.0",
"description": "Collection of SDKs to interact with Morpho",
"repository": "git@github.com:morpho-org/sdks.git",
"author": "Morpho Labs <contact@morpho.org>",
"author": "Morpho Association <contact@morpho.org>",
"license": "MIT",
"type": "module",
"private": true,
Expand Down
2 changes: 1 addition & 1 deletion packages/blue-api-sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@morpho-org/blue-api-sdk",
"version": "1.12.4",
"author": "Morpho Labs <contact@morpho.org>",
"author": "Morpho Association <contact@morpho.org>",
"type": "module",
"main": "src/index.ts",
"files": ["lib"],
Expand Down
2 changes: 1 addition & 1 deletion packages/blue-sdk-ethers/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@morpho-org/blue-sdk-ethers",
"version": "1.12.4",
"author": "Morpho Labs <contact@morpho.org>",
"author": "Morpho Association <contact@morpho.org>",
"license": "MIT",
"type": "module",
"main": "src/index.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/blue-sdk-viem/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@morpho-org/blue-sdk-viem",
"version": "1.12.4",
"author": "Morpho Labs <contact@morpho.org>",
"author": "Morpho Association <contact@morpho.org>",
"license": "MIT",
"main": "src/index.ts",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion packages/blue-sdk-wagmi/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@morpho-org/blue-sdk-wagmi",
"version": "1.12.4",
"author": "Morpho Labs <contact@morpho.org>",
"author": "Morpho Association <contact@morpho.org>",
"license": "MIT",
"type": "module",
"main": "src/index.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/blue-sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@morpho-org/blue-sdk",
"version": "1.12.4",
"author": "Morpho Labs <contact@morpho.org>",
"author": "Morpho Association <contact@morpho.org>",
"license": "MIT",
"type": "module",
"main": "src/index.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/bundler-sdk-viem/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@morpho-org/bundler-sdk-viem",
"version": "1.12.4",
"author": "Morpho Labs <contact@morpho.org>",
"author": "Morpho Association <contact@morpho.org>",
"license": "MIT",
"type": "module",
"main": "src/index.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/liquidation-sdk-viem/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@morpho-org/liquidation-sdk-viem",
"version": "1.12.4",
"author": "Morpho Labs <contact@morpho.org>",
"author": "Morpho Association <contact@morpho.org>",
"type": "module",
"main": "src/index.ts",
"files": ["lib", "examples"],
Expand Down
2 changes: 1 addition & 1 deletion packages/morpho-test/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@morpho-org/morpho-test",
"version": "1.12.4",
"author": "Morpho Labs <contact@morpho.org>",
"author": "Morpho Association <contact@morpho.org>",
"type": "module",
"main": "src/index.ts",
"files": ["lib"],
Expand Down
2 changes: 1 addition & 1 deletion packages/morpho-ts/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@morpho-org/morpho-ts",
"version": "1.12.4",
"author": "Morpho Labs <contact@morpho.org>",
"author": "Morpho Association <contact@morpho.org>",
"license": "MIT",
"main": "src/index.ts",
"files": ["lib"],
Expand Down
2 changes: 1 addition & 1 deletion packages/simulation-sdk-wagmi/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@morpho-org/simulation-sdk-wagmi",
"version": "1.12.4",
"author": "Morpho Labs <contact@morpho.org>",
"author": "Morpho Association <contact@morpho.org>",
"license": "MIT",
"type": "module",
"main": "src/index.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/simulation-sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@morpho-org/simulation-sdk",
"version": "1.12.4",
"author": "Morpho Labs <contact@morpho.org>",
"author": "Morpho Association <contact@morpho.org>",
"license": "MIT",
"type": "module",
"main": "src/index.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/test-ethers/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@morpho-org/test-ethers",
"version": "1.12.4",
"author": "Morpho Labs <contact@morpho.org>",
"author": "Morpho Association <contact@morpho.org>",
"type": "module",
"main": "src/index.ts",
"files": ["lib"],
Expand Down
2 changes: 1 addition & 1 deletion packages/test-viem/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@morpho-org/test-viem",
"version": "1.12.4",
"author": "Morpho Labs <contact@morpho.org>",
"author": "Morpho Association <contact@morpho.org>",
"type": "module",
"main": "src/index.ts",
"files": ["lib"],
Expand Down
2 changes: 1 addition & 1 deletion packages/test-wagmi/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@morpho-org/test-wagmi",
"version": "1.12.4",
"author": "Morpho Labs <contact@morpho.org>",
"author": "Morpho Association <contact@morpho.org>",
"type": "module",
"main": "src/index.ts",
"files": ["lib"],
Expand Down
2 changes: 1 addition & 1 deletion packages/test/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@morpho-org/test",
"version": "1.12.4",
"author": "Morpho Labs <contact@morpho.org>",
"author": "Morpho Association <contact@morpho.org>",
"type": "module",
"main": "src/index.ts",
"files": ["lib"],
Expand Down

0 comments on commit 397d167

Please sign in to comment.