diff --git a/.github/workflows/publish-contracts-abi-release.yml b/.github/workflows/publish-contracts-abi-release.yml index c20c260886f..f6d5974f5f1 100644 --- a/.github/workflows/publish-contracts-abi-release.yml +++ b/.github/workflows/publish-contracts-abi-release.yml @@ -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: @@ -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 }} diff --git a/packages/protocol/scripts/is-contract-release.ts b/packages/protocol/scripts/is-contract-release.ts index 753d6d9706f..e3a2d010cb4 100644 --- a/packages/protocol/scripts/is-contract-release.ts +++ b/packages/protocol/scripts/is-contract-release.ts @@ -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)