Skip to content

Commit

Permalink
fix: oclif promote step (#2301)
Browse files Browse the repository at this point in the history
* fix: upgrade to latest oclif for promote:deb fix.

* fix: use correct path to install scripts

* chore: update input description, remove unneeded continue-on-error
  • Loading branch information
ryandagg authored Apr 14, 2023
1 parent 5a049c9 commit 4e94fb1
Show file tree
Hide file tree
Showing 30 changed files with 72 additions and 38 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/pack-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
type: string
required: true
channel:
description: \'beta\' or \'stable\' release
description: dev, beta or stable release
type: string
required: true
commitSHA:
Expand Down Expand Up @@ -165,7 +165,6 @@ jobs:
shortSHA=`git rev-parse --short=7 HEAD`
fi
yarn oclif promote --deb --xz --root="./packages/cli" --indexes --version=${{ inputs.version }} --sha=$shortSHA --channel=${{ inputs.channel }}
continue-on-error: true # temporary work around for https://github.com/oclif/oclif/issues/770
- name: update Linux install scripts
run: node ./scripts/postrelease/install_scripts.js

Expand Down
2 changes: 1 addition & 1 deletion packages/addons-v5/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"mocha": "^5.2.0",
"nock": "9.0.13",
"nyc": "^15.1.0",
"oclif": "3.6.4",
"oclif": "3.8.1",
"sinon": "^6.3.5"
},
"files": [
Expand Down
2 changes: 1 addition & 1 deletion packages/apps-v5/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"netrc-parser": "^3.1.6",
"nock": "^10.0.6",
"nyc": "^15.1.0",
"oclif": "3.6.4",
"oclif": "3.8.1",
"proxyquire": "^2.1.0",
"set-tz": "^0.1.0",
"std-mocks": "1.0.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/apps/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"mocha": "^5",
"nock": "^13.0.1",
"nyc": "^15.1.0",
"oclif": "3.6.4",
"oclif": "3.8.1",
"ts-node": "^10",
"typescript": "4.8.4"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/auth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"mocha": "^5.2.0",
"nock": "^10.0.6",
"nyc": "^15.1.0",
"oclif": "3.6.4",
"oclif": "3.8.1",
"ts-node": "^10.9.1",
"tslib": "^1.9.3",
"typescript": "4.8.4"
Expand Down
2 changes: 1 addition & 1 deletion packages/autocomplete/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"mocha": "5.2.0",
"nock": "^10.0.6",
"nyc": "15.1.0",
"oclif": "3.6.4",
"oclif": "3.8.1",
"ts-node": "10.9.1",
"typescript": "4.8.4"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/buildpacks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"mocha": "^5",
"nock": "^10.0.6",
"nyc": "^15.1.0",
"oclif": "3.6.4",
"oclif": "3.8.1",
"tmp": "^0.0.33",
"ts-node": "^10.9.1",
"tslib": "^1",
Expand Down
2 changes: 1 addition & 1 deletion packages/certs-v5/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"mocha": "^5.2.0",
"nock": "^10.0.6",
"nyc": "^15.1.0",
"oclif": "3.6.4",
"oclif": "3.8.1",
"proxyquire": "^2.1.0",
"sinon": "^2.3.6",
"sinon-chai": "^2.14.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/certs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"globby": "^9.0.0",
"mocha": "^5",
"nyc": "^15.1.0",
"oclif": "3.6.4",
"oclif": "3.8.1",
"ts-node": "^10.9.1",
"typescript": "4.8.4"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/ci-v5/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"estraverse": "^4.2.0",
"mocha": "^5.1.1",
"nock": "^10.0.6",
"oclif": "3.6.4",
"oclif": "3.8.1",
"sinon": "^1.17.6",
"std-mocks": "^1.0.1"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/ci/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"mocha": "^5",
"nock": "^10.0.6",
"nyc": "^15.1.0",
"oclif": "3.6.4",
"oclif": "3.8.1",
"ts-node": "^10.9.1",
"typescript": "4.8.4"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
"lodash": "^4.17.11",
"mocha": "^5.2.0",
"nock": "^10.0.6",
"oclif": "3.6.4",
"oclif": "3.8.1",
"qqjs": "0.3.10",
"read-pkg": "^4.0.1",
"sinon": "^7.2.4",
Expand Down
2 changes: 1 addition & 1 deletion packages/config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"mocha": "^5.2.0",
"nock": "^10.0.6",
"nyc": "^15.1.0",
"oclif": "3.6.4",
"oclif": "3.8.1",
"sinon": "^7.2.4",
"ts-node": "^10.9.1",
"tslib": "^1.9.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/container-registry-v5/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"mockdate": "^2.0.2",
"nock": "^10.0.6",
"nyc": "^15.1.0",
"oclif": "3.6.4",
"oclif": "3.8.1",
"sinon": "^5.0.7",
"std-mocks": "^1.0.1"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/git/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"mocha": "^5.2.0",
"nock": "^10.0.6",
"nyc": "^15.1.0",
"oclif": "3.6.4",
"oclif": "3.8.1",
"ts-node": "^10.9.1",
"tslib": "^1.9.3",
"typescript": "4.8.4"
Expand Down
2 changes: 1 addition & 1 deletion packages/local/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"globby": "^8",
"mocha": "^5",
"nyc": "^15.1.0",
"oclif": "3.6.4",
"oclif": "3.8.1",
"ts-node": "^10",
"tslib": "^1.9.3",
"typescript": "4.8.4"
Expand Down
2 changes: 1 addition & 1 deletion packages/oauth-v5/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"mocha-junit-reporter": "1.18.0",
"nock": "10.0.6",
"nyc": "^15.1.0",
"oclif": "3.6.4"
"oclif": "3.8.1"
},
"files": [
"oclif.manifest.json",
Expand Down
2 changes: 1 addition & 1 deletion packages/oauth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"globby": "^10",
"mocha": "^5",
"nyc": "^15.1.0",
"oclif": "3.6.4",
"oclif": "3.8.1",
"ts-node": "^10",
"typescript": "4.8.4"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/orgs-v5/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"mocha": "^5.2.0",
"nock": "^10.0.6",
"nyc": "^15.1.0",
"oclif": "3.6.4",
"oclif": "3.8.1",
"proxyquire": "^2.1.0"
},
"files": [
Expand Down
2 changes: 1 addition & 1 deletion packages/pg-v5/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"mocha": "^5.1.1",
"nock": "^10.0.6",
"nyc": "^15.1.0",
"oclif": "3.6.4",
"oclif": "3.8.1",
"proxyquire": "^2.1.0",
"sinon": "^7.2.3",
"standard": "^12.0.1"
Expand Down
2 changes: 1 addition & 1 deletion packages/pipelines/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"mocha": "5.2.0",
"nock": "^10.0.6",
"nyc": "^15.1.0",
"oclif": "3.6.4",
"oclif": "3.8.1",
"sinon": "^7.4.1",
"ts-node": "10.9.1",
"typescript": "4.8.4"
Expand Down
2 changes: 1 addition & 1 deletion packages/ps/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"mocha": "^5.2.0",
"nock": "^10.0.6",
"nyc": "^15.1.0",
"oclif": "3.6.4",
"oclif": "3.8.1",
"ts-node": "10.9.1",
"tslib": "^1.9.3",
"typescript": "4.8.4"
Expand Down
2 changes: 1 addition & 1 deletion packages/redis-v5/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"mocha": "^5.2.0",
"nock": "^10.0.6",
"nyc": "^15.1.0",
"oclif": "3.6.4",
"oclif": "3.8.1",
"proxyquire": "^2.1.0",
"sinon": "^7.2.3"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/run-v5/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"mocha-junit-reporter": "1.18.0",
"netrc": "0.1.4",
"nock": "^10.0.6",
"oclif": "3.6.4",
"oclif": "3.8.1",
"sinon": "^7.2.3"
},
"files": [
Expand Down
2 changes: 1 addition & 1 deletion packages/run/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"http-call": "^5.2.5",
"mocha": "^5",
"nyc": "^15.1.0",
"oclif": "3.6.4",
"oclif": "3.8.1",
"sinon": "^7.4.1",
"ts-node": "^10",
"typescript": "4.8.4"
Expand Down
2 changes: 1 addition & 1 deletion packages/spaces/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"mocha": "^5.2.0",
"nock": "^10.0.6",
"nyc": "^15.1.0",
"oclif": "3.6.4",
"oclif": "3.8.1",
"sinon": "^7.2.3"
},
"files": [
Expand Down
2 changes: 1 addition & 1 deletion packages/status/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"globby": "^9.0.0",
"mocha": "^5.1.1",
"nock": "^10.0.6",
"oclif": "3.6.4",
"oclif": "3.8.1",
"ts-node": "^10.9.1",
"typescript": "4.8.4"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/webhooks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"globby": "^8",
"mocha": "^5",
"nyc": "^15.1.0",
"oclif": "3.6.4",
"oclif": "3.8.1",
"ts-node": "^10",
"typescript": "^4.8.4"
},
Expand Down
6 changes: 3 additions & 3 deletions scripts/postrelease/install_scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ qq.run(async () => {
const { GITHUB_REF_TYPE, GITHUB_REF_NAME } = process.env
if (GITHUB_REF_TYPE === 'tag' && GITHUB_REF_NAME.startsWith('v')) {
const HEROKU_S3_BUCKET = getHerokuS3Bucket()
await execa(`aws s3 cp --content-type text/plain --cache-control "max-age: 604800" ./install-standalone.sh "s3://${HEROKU_S3_BUCKET}/install-standalone.sh"`)
await execa(`aws s3 cp --content-type text/plain --cache-control "max-age: 604800" ./install-standalone.sh "s3://${HEROKU_S3_BUCKET}/install.sh"`)
await execa(`aws s3 cp --content-type text/plain --cache-control "max-age: 604800" ./install-ubuntu.sh "s3://${HEROKU_S3_BUCKET}/install-ubuntu.sh"`)
await execa(`aws s3 cp --content-type text/plain --cache-control "max-age: 604800" ../../install-standalone.sh "s3://${HEROKU_S3_BUCKET}/install-standalone.sh"`)
await execa(`aws s3 cp --content-type text/plain --cache-control "max-age: 604800" ../../install-standalone.sh "s3://${HEROKU_S3_BUCKET}/install.sh"`)
await execa(`aws s3 cp --content-type text/plain --cache-control "max-age: 604800" ../../install-ubuntu.sh "s3://${HEROKU_S3_BUCKET}/install-ubuntu.sh"`)
} else {
console.log('Not on stable release, skipping updating install scripts')
}
Expand Down
47 changes: 41 additions & 6 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1681,7 +1681,7 @@
widest-line "^3.1.0"
wrap-ansi "^7.0.0"

"@oclif/core@^2.0.3", "@oclif/core@^2.0.8":
"@oclif/core@^2.0.8":
version "2.1.5"
resolved "https://registry.npmjs.org/@oclif/core/-/core-2.1.5.tgz"
integrity sha512-vwktkhUFco3roVCaK20RLUQURb/IcPyvBQrZBn02mmNw+l5S4w4LEII60ArPY+pf0NjG5ElFKnrOXPaqaYxyYw==
Expand Down Expand Up @@ -1854,6 +1854,41 @@
wordwrap "^1.0.0"
wrap-ansi "^7.0.0"

"@oclif/core@^2.8.0":
version "2.8.2"
resolved "https://registry.yarnpkg.com/@oclif/core/-/core-2.8.2.tgz#86fc31f20419dbb3cd25f89f4f1d83760c60f7c0"
integrity sha512-g50NrCdEcFlBfuwZb9RxLmxPNQ9wIaBPOiwbxlGYRkHMnsC6LNHcvVtyDnmndU8qoXrmCOZ6ocSZenOMlG+G1w==
dependencies:
"@types/cli-progress" "^3.11.0"
ansi-escapes "^4.3.2"
ansi-styles "^4.3.0"
cardinal "^2.1.1"
chalk "^4.1.2"
clean-stack "^3.0.1"
cli-progress "^3.12.0"
debug "^4.3.4"
ejs "^3.1.8"
fs-extra "^9.1.0"
get-package-type "^0.1.0"
globby "^11.1.0"
hyperlinker "^1.0.0"
indent-string "^4.0.0"
is-wsl "^2.2.0"
js-yaml "^3.14.1"
natural-orderby "^2.0.3"
object-treeify "^1.1.33"
password-prompt "^1.1.2"
semver "^7.3.7"
string-width "^4.2.3"
strip-ansi "^6.0.1"
supports-color "^8.1.1"
supports-hyperlinks "^2.2.0"
ts-node "^10.9.1"
tslib "^2.5.0"
widest-line "^3.1.0"
wordwrap "^1.0.0"
wrap-ansi "^7.0.0"

"@oclif/[email protected]", "@oclif/errors@^1.2.2", "@oclif/errors@^1.3.5", "@oclif/errors@^1.3.6":
version "1.3.6"
resolved "https://registry.npmjs.org/@oclif/errors/-/errors-1.3.6.tgz"
Expand Down Expand Up @@ -9379,12 +9414,12 @@ object.pick@^1.3.0:
dependencies:
isobject "^3.0.1"

oclif@3.6.4:
version "3.6.4"
resolved "https://registry.npmjs.org/oclif/-/oclif-3.6.4.tgz"
integrity sha512-RYWmKQM5jammrHTF33DGBfBAaYxdARkc0VvUNpLtg8AFu5x91FxaOHdbOAYwkzPMC168MZ+O/EFi4jM96GxvPA==
oclif@3.8.1:
version "3.8.1"
resolved "https://registry.yarnpkg.com/oclif/-/oclif-3.8.1.tgz#15be26a8ce842b690c8384b4056fcf67394caa11"
integrity sha512-1yc1rtsQrou6t21WYM6JM2fUzK3GKhGboB/A6ZeTFyC3VJb39fUWcRrQYE1JEoNlBHk5Z5hok8PEq09Vhm4ZZA==
dependencies:
"@oclif/core" "^2.0.3"
"@oclif/core" "^2.8.0"
"@oclif/plugin-help" "^5.1.19"
"@oclif/plugin-not-found" "^2.3.7"
"@oclif/plugin-warn-if-update-available" "^2.0.14"
Expand Down

0 comments on commit 4e94fb1

Please sign in to comment.