Skip to content

Commit

Permalink
fix(publish): revert to semantic-release
Browse files Browse the repository at this point in the history
  • Loading branch information
Rubilmax committed Oct 17, 2024
1 parent 62be81a commit 44acea1
Show file tree
Hide file tree
Showing 17 changed files with 65 additions and 30 deletions.
39 changes: 26 additions & 13 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,23 +30,36 @@ jobs:

- run: pnpm install

- run: pnpm -r --parallel -c exec "jq '.release = input.release_version' package.json ../../package.json > tmp.json && mv tmp.json package.json"

- run: pnpm -r --parallel --no-reporter-hide-prefix exec semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- run: pnpm -r --parallel -c exec "jq '.release = input.release_publish' package.json ../../package.json > tmp.json && mv tmp.json package.json"

- run: |
git config --global user.name 'github-actions'
git config --global user.email 'github-actions@users.noreply.github.com'
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
- run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
pnpm -r --parallel --no-reporter-hide-prefix exec semantic-release
- if: github.ref == 'refs/heads/main'
run: |
pnpm lerna publish -m "chore(release): publish %s" --no-private --conventional-commits --no-changelog --yes
# - run: |
# git config --global user.name 'github-actions'
# git config --global user.email 'github-actions@users.noreply.github.com'

- if: github.ref == 'refs/heads/next'
run: |
pnpm lerna publish -m "chore(release): publish %s" --dist-tag next --exact --no-private --conventional-commits --conventional-prerelease --no-changelog --yes
# - run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc

- run: pnpm -r --parallel -c exec "jq '.release = input.release' package.json ../../package.json > tmp.json && mv tmp.json package.json"
# - if: github.ref == 'refs/heads/main'
# run: |
# pnpm lerna publish -m "chore(release): publish %s" --no-private --conventional-commits --no-changelog --yes

- run: pnpm -r --parallel --no-reporter-hide-prefix exec semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# - if: github.ref == 'refs/heads/next'
# run: |
# pnpm lerna publish -m "chore(release): publish %s" --dist-tag next --exact --no-private --conventional-commits --conventional-prerelease --no-changelog --yes

# - run: pnpm -r --parallel -c exec "jq '.release = input.release' package.json ../../package.json > tmp.json && mv tmp.json package.json"

# - run: pnpm -r --parallel --no-reporter-hide-prefix exec semantic-release
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

26 changes: 24 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"commitlint": {
"extends": ["@commitlint/config-conventional"]
},
"release": {
"release_version": {
"branches": [
"main",
{
Expand All @@ -52,8 +52,30 @@
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
[
"@semantic-release/exec",
{
"prepareCmd": "pnpm version ${nextRelease.version} --no-git-tag-version"
}
],
"@semantic-release/github"
]
},
"dependencies": {}
"release_publish": {
"branches": [
"main",
{
"name": "next",
"prerelease": true
}
],
"plugins": [
[
"@semantic-release/exec",
{
"publishCmd": "pnpm publish --access public --tag ${nextRelease.channel} --no-git-checks"
}
]
]
}
}
2 changes: 1 addition & 1 deletion packages/blue-api-sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@morpho-org/blue-api-sdk",
"version": "1.12.5-alpha.0",
"version": "1.12.4",
"author": "Morpho Association <contact@morpho.org>",
"type": "module",
"main": "src/index.ts",
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,6 +1,6 @@
{
"name": "@morpho-org/blue-sdk-ethers",
"version": "1.12.5-alpha.0",
"version": "1.12.4",
"author": "Morpho Association <contact@morpho.org>",
"license": "MIT",
"type": "module",
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,6 +1,6 @@
{
"name": "@morpho-org/blue-sdk-viem",
"version": "1.12.5-alpha.0",
"version": "1.12.4",
"author": "Morpho Association <contact@morpho.org>",
"license": "MIT",
"main": "src/index.ts",
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,6 +1,6 @@
{
"name": "@morpho-org/blue-sdk-wagmi",
"version": "1.12.5-alpha.0",
"version": "1.12.4",
"author": "Morpho Association <contact@morpho.org>",
"license": "MIT",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion packages/blue-sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@morpho-org/blue-sdk",
"version": "1.12.5-alpha.0",
"version": "1.12.4",
"author": "Morpho Association <contact@morpho.org>",
"license": "MIT",
"type": "module",
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,6 +1,6 @@
{
"name": "@morpho-org/bundler-sdk-viem",
"version": "1.12.5-alpha.0",
"version": "1.12.4",
"author": "Morpho Association <contact@morpho.org>",
"license": "MIT",
"type": "module",
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,6 +1,6 @@
{
"name": "@morpho-org/liquidation-sdk-viem",
"version": "1.12.5-alpha.0",
"version": "1.12.4",
"author": "Morpho Association <contact@morpho.org>",
"type": "module",
"main": "src/index.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/morpho-test/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@morpho-org/morpho-test",
"version": "1.12.5-alpha.0",
"version": "1.12.4",
"author": "Morpho Association <contact@morpho.org>",
"type": "module",
"main": "src/index.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/morpho-ts/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@morpho-org/morpho-ts",
"version": "1.12.5-alpha.0",
"version": "1.12.4",
"author": "Morpho Association <contact@morpho.org>",
"license": "MIT",
"main": "src/index.ts",
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,6 +1,6 @@
{
"name": "@morpho-org/simulation-sdk-wagmi",
"version": "1.12.5-alpha.0",
"version": "1.12.4",
"author": "Morpho Association <contact@morpho.org>",
"license": "MIT",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion packages/simulation-sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@morpho-org/simulation-sdk",
"version": "1.12.5-alpha.0",
"version": "1.12.4",
"author": "Morpho Association <contact@morpho.org>",
"license": "MIT",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion packages/test-ethers/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@morpho-org/test-ethers",
"version": "1.12.5-alpha.0",
"version": "1.12.4",
"author": "Morpho Association <contact@morpho.org>",
"type": "module",
"main": "src/index.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/test-viem/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@morpho-org/test-viem",
"version": "1.12.5-alpha.0",
"version": "1.12.4",
"author": "Morpho Association <contact@morpho.org>",
"type": "module",
"main": "src/index.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/test-wagmi/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@morpho-org/test-wagmi",
"version": "1.12.5-alpha.0",
"version": "1.12.4",
"author": "Morpho Association <contact@morpho.org>",
"type": "module",
"main": "src/index.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/test/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@morpho-org/test",
"version": "1.12.5-alpha.0",
"version": "1.12.4",
"author": "Morpho Association <contact@morpho.org>",
"type": "module",
"main": "src/index.ts",
Expand Down

0 comments on commit 44acea1

Please sign in to comment.