Skip to content

Commit

Permalink
refactor(packages/sui-test-contract): make it linter compliant
Browse files Browse the repository at this point in the history
  • Loading branch information
jordevo committed Jan 3, 2024
1 parent 55fbc6d commit 84a6a9e
Showing 1 changed file with 18 additions and 5 deletions.
23 changes: 18 additions & 5 deletions packages/sui-test-contract/bin/sui-test-contract-publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,24 @@ program
const {brokerUrl} = program.opts()
if (!brokerUrl) throw new Error('You need to specify the broker URL where the contracts will be published.')
const contractsDir = path.resolve(process.cwd(), 'contract/documents')
const {GITHUB_HEAD_REF, GITHUB_REF, GITHUB_REF_NAME, GITHUB_SHA, TRAVIS_PULL_REQUEST_BRANCH, TRAVIS_BRANCH,
TRAVIS_COMMIT, TRAVIS_PULL_REQUEST_SHA} = process.env

const branch = TRAVIS_PULL_REQUEST_BRANCH || TRAVIS_BRANCH || GITHUB_HEAD_REF || GITHUB_REF_NAME ||
GITHUB_REF || exec('git rev-parse --abbrev-ref HEAD')
const {
GITHUB_HEAD_REF,
GITHUB_REF,
GITHUB_REF_NAME,
GITHUB_SHA,
TRAVIS_PULL_REQUEST_BRANCH,
TRAVIS_BRANCH,
TRAVIS_COMMIT,
TRAVIS_PULL_REQUEST_SHA
} = process.env

const branch =
TRAVIS_PULL_REQUEST_BRANCH ||
TRAVIS_BRANCH ||
GITHUB_HEAD_REF ||
GITHUB_REF_NAME ||
GITHUB_REF ||
exec('git rev-parse --abbrev-ref HEAD')
const consumerVersion = TRAVIS_PULL_REQUEST_SHA || TRAVIS_COMMIT || GITHUB_SHA

const options = {
Expand Down

0 comments on commit 84a6a9e

Please sign in to comment.