Skip to content

Commit

Permalink
fix: add run?
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasbrugneaux committed Oct 12, 2023
1 parent 9fc9a87 commit b974821
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 14 deletions.
23 changes: 10 additions & 13 deletions .github/workflows/publish-contracts-abi-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ jobs:
repository-projects: read
steps:
- uses: actions/checkout@v4
# - name: Akeyless Get Secrets
# id: get_auth_token
# uses: docker://us-west1-docker.pkg.dev/devopsre/akeyless-public/akeyless-action:latest
# with:
# api-url: https://api.gateway.akeyless.celo-networks-dev.org
# # this access-id needs to change whenever devops gives em
# access-id: TODO
# static-secrets: '{"/static-secrets/apps-tooling-circle/npm-publish-token":"NPM_TOKEN"}'
- name: Akeyless Get Secrets
id: get_auth_token
uses: docker://us-west1-docker.pkg.dev/devopsre/akeyless-public/akeyless-action:latest
with:
api-url: https://api.gateway.akeyless.celo-networks-dev.org
# this access-id needs to change whenever devops gives em
access-id: p-kf9vjzruht6l
static-secrets: '{"/static-secrets/apps-tooling-circle/npm-publish-token":"NPM_TOKEN"}'
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v3
with:
Expand All @@ -43,17 +43,14 @@ jobs:
- name: 'Install packages'
run: yarn

- run: cd packages/protocol

- name: 'Check if a release should be published'
id: is_contract_relase
run: yarn --silent is_contract_release $GITHUB_TAG >> "$GITHUB_ENV"
run: npm run is_contract_release $GITHUB_TAG >> "$GITHUB_ENV"
env:
GITHUB_TAG: ${{ github.ref_name }}

- if: ${{ env.RELEASE_VERSION != '' }}
name: 'Compile solidity contracts and typescript files'
run: yarn build && yarn run prepare_contracts_and_abis_publishing
run: yarn build && npm run prepare_contracts_and_abis_publishing
env:
RELEASE_TYPE: ${{ env.RELEASE_TYPE }}
RELEASE_VERSION: ${{ env.RELEASE_VERSION }}
Expand Down
1 change: 0 additions & 1 deletion packages/protocol/scripts/is-contract-release.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ const [, gitTag] = match
const [major, minor, patchAndMore] = gitTag.split('.')
const semver = new SemVer([major, minor, patchAndMore].map((x) => x || 0).join('.'))

console.log(semver)
console.log(`RELEASE_VERSION=${semver.version}`)
console.log(`RELEASE_TYPE=${semver.prerelease.length ? 'prerelease' : 'release'}`)
process.exit(0)

0 comments on commit b974821

Please sign in to comment.