Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

Commit

Permalink
fix: use aegir to publish RCs (#4284)
Browse files Browse the repository at this point in the history
Use the new `release-rc` command in aegir to publish release candidates
instead of lerna.
  • Loading branch information
achingbrain authored Jan 10, 2023
1 parent 2a6fede commit 6d90cbf
Show file tree
Hide file tree
Showing 22 changed files with 23 additions and 46 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -262,8 +262,6 @@ jobs:
- if: ${{ !steps.release.outputs.releases_created }}
name: Run release rc
run: |
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
git update-index --assume-unchanged packages/ipfs-core/src/version.js packages/ipfs-http-server/src/version.js packages/ipfs/src/package.js
npm run --if-present release:rc
env:
Expand Down
18 changes: 0 additions & 18 deletions lerna.json

This file was deleted.

11 changes: 4 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,15 @@
"lint": "aegir run lint",
"dep-check": "aegir run dep-check",
"release": "run-s build npm:release docker:release",
"npm:release": "aegir publish from-package --no-push --no-private --yes",
"npm:release": "aegir run release",
"docker:release": "run-s docker:release:*",
"docker:release:build": "docker build . --no-cache --tag js-ipfs:latest --file ./Dockerfile.latest",
"docker:release:tag-latest": "docker tag js-ipfs:latest docker.io/ipfs/js-ipfs:latest",
"docker:release:tag-version": "docker tag js-ipfs:latest docker.io/ipfs/js-ipfs:v`npm show ipfs@latest version -q`",
"docker:release:push-latest": "docker push ipfs/js-ipfs:latest",
"docker:release:push-version": "docker push ipfs/js-ipfs:v`npm show ipfs@latest version -q`",
"release:rc": "run-s npm:rc:* docker:rc",
"npm:rc:version": "lerna version prerelease --preid `git rev-parse --short HEAD` --force-publish --no-push --yes",
"npm:rc:build": "npm run build",
"npm:rc:publish": "lerna publish from-package --no-push --no-private --dist-tag next --yes",
"release:rc": "run-s npm:rc docker:rc",
"npm:rc": "aegir run release-rc",
"docker:rc": "run-s docker:rc:*",
"docker:rc:build": "docker build . --no-cache --tag js-ipfs:next --file ./Dockerfile.next",
"docker:rc:tag-next": "docker tag js-ipfs:next docker.io/ipfs/js-ipfs:next",
Expand All @@ -58,8 +56,7 @@
"docker:rc:push-rc": "docker push ipfs/js-ipfs:v`npm show ipfs@next version -q`"
},
"devDependencies": {
"aegir": "^37.9.0",
"lerna": "^6.4.0",
"aegir": "^37.11.0",
"node-fetch": "npm:@achingbrain/node-fetch@^2.6.4",
"npm-run-all": "^4.1.5"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/interface-ipfs-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
"@types/node": "^18.0.0",
"@types/pako": "^2.0.0",
"@types/readable-stream": "^2.3.13",
"aegir": "^37.9.0",
"aegir": "^37.11.0",
"blockstore-core": "^3.0.0",
"copyfiles": "^2.4.1",
"dag-jose": "^3.0.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/ipfs-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
"@types/progress": "^2.0.3",
"@types/rimraf": "^3.0.1",
"@types/yargs": "^17.0.10",
"aegir": "^37.9.0",
"aegir": "^37.11.0",
"ipfs-repo": "^17.0.0",
"it-all": "^2.0.0",
"it-first": "^2.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/ipfs-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,6 @@
"merge-options": "^3.0.4"
},
"devDependencies": {
"aegir": "^37.9.0"
"aegir": "^37.11.0"
}
}
2 changes: 1 addition & 1 deletion packages/ipfs-core-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@
"uint8arrays": "^4.0.2"
},
"devDependencies": {
"aegir": "^37.9.0",
"aegir": "^37.11.0",
"ipfs-core-utils": "^0.17.0"
}
}
2 changes: 1 addition & 1 deletion packages/ipfs-core-types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,6 @@
"multiformats": "^11.0.0"
},
"devDependencies": {
"aegir": "^37.9.0"
"aegir": "^37.11.0"
}
}
2 changes: 1 addition & 1 deletion packages/ipfs-core-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@
},
"devDependencies": {
"@web-std/file": "^3.0.2",
"aegir": "^37.9.0"
"aegir": "^37.11.0"
},
"browser": {
"fs": false
Expand Down
2 changes: 1 addition & 1 deletion packages/ipfs-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@
"@types/dlv": "^1.1.2",
"@types/pako": "^2.0.0",
"@types/rimraf": "^3.0.1",
"aegir": "^37.9.0",
"aegir": "^37.11.0",
"blockstore-datastore-adapter": "^5.0.0",
"delay": "^5.0.0",
"go-ipfs": "^0.12.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/ipfs-daemon/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
"libp2p": "next"
},
"devDependencies": {
"aegir": "^37.9.0",
"aegir": "^37.11.0",
"node-fetch": "^3.2.3",
"ws": "^8.5.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/ipfs-grpc-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
"ws": "^8.5.0"
},
"devDependencies": {
"aegir": "^37.9.0",
"aegir": "^37.11.0",
"it-all": "^2.0.0",
"protobufjs-cli": "^1.0.0",
"sinon": "^15.0.1"
Expand Down
2 changes: 1 addition & 1 deletion packages/ipfs-grpc-protocol/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
"lint": "aegir lint"
},
"devDependencies": {
"aegir": "^37.9.0",
"aegir": "^37.11.0",
"mkdirp": "^1.0.4",
"protobufjs": "^7.0.0",
"protobufjs-cli": "^1.0.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/ipfs-grpc-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
},
"devDependencies": {
"@types/ws": "^8.5.3",
"aegir": "^37.9.0",
"aegir": "^37.11.0",
"ipfs-core": "^0.17.0",
"it-all": "^2.0.0",
"it-drain": "^2.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/ipfs-http-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
"uint8arrays": "^4.0.2"
},
"devDependencies": {
"aegir": "^37.9.0",
"aegir": "^37.11.0",
"delay": "^5.0.0",
"go-ipfs": "^0.12.0",
"ipfsd-ctl": "^12.0.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/ipfs-http-gateway/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
"devDependencies": {
"@types/hapi-pino": "^8.0.1",
"@types/hapi__hapi": "^20.0.5",
"aegir": "^37.9.0",
"aegir": "^37.11.0",
"file-type": "^18.0.0",
"sinon": "^15.0.1"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/ipfs-http-response/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
"devDependencies": {
"@types/ejs": "^3.1.0",
"@types/mime-types": "^2.1.1",
"aegir": "^37.9.0",
"aegir": "^37.11.0",
"get-stream": "^6.0.0",
"ipfs-core": "^0.17.0",
"ipfsd-ctl": "^12.0.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/ipfs-http-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
"@types/hapi-pino": "^8.0.1",
"@types/hapi__hapi": "^20.0.5",
"@types/node": "^18.0.0",
"aegir": "^37.9.0",
"aegir": "^37.11.0",
"err-code": "^3.0.1",
"form-data": "^4.0.0",
"ipfs-http-client": "^59.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/ipfs-message-port-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
"multiformats": "^11.0.0"
},
"devDependencies": {
"aegir": "^37.9.0",
"aegir": "^37.11.0",
"interface-ipfs-core": "^0.157.0",
"ipfs-core": "^0.17.0",
"ipfs-message-port-server": "^0.14.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/ipfs-message-port-protocol/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
"multiformats": "^11.0.0"
},
"devDependencies": {
"aegir": "^37.9.0",
"aegir": "^37.11.0",
"uint8arrays": "^4.0.2"
}
}
2 changes: 1 addition & 1 deletion packages/ipfs-message-port-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
"it-all": "^2.0.0"
},
"devDependencies": {
"aegir": "^37.9.0",
"aegir": "^37.11.0",
"multiformats": "^11.0.0"
},
"browser": {
Expand Down
2 changes: 1 addition & 1 deletion packages/ipfs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
"@libp2p/websockets": "^5.0.0",
"@types/semver": "^7.3.4",
"@types/update-notifier": "^6.0.1",
"aegir": "^37.9.0",
"aegir": "^37.11.0",
"cross-env": "^7.0.0",
"go-ipfs": "^0.12.0",
"interface-ipfs-core": "^0.157.0",
Expand Down

0 comments on commit 6d90cbf

Please sign in to comment.