feat(testing_utils): add set_account_as_security_governor function #84
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: starkware_utils_testing publish | |
| on: | |
| pull_request: | |
| types: [closed] | |
| branches: | |
| - main | |
| jobs: | |
| publish: | |
| # Only run if the PR was merged and had the 'testing-release' label | |
| if: > | |
| github.event.pull_request.merged == true && | |
| contains(github.event.pull_request.labels.*.name, 'testing-release') | |
| permissions: | |
| contents: write | |
| runs-on: ubuntu-latest | |
| env: | |
| SCARB_REGISTRY_AUTH_TOKEN: ${{ secrets.SCARB_REGISTRY_AUTH_TOKEN }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: software-mansion/setup-scarb@v1 | |
| with: | |
| scarb-version: "2.11.4" | |
| - name: Extract current versions | |
| working-directory: ./packages/testing | |
| run: | | |
| CURRENT_VERSION=$(grep '^version = ' Scarb.toml | sed 's/version = "\(.*\)"/\1/') | |
| { | |
| echo "CURRENT_VERSION=$CURRENT_VERSION" | |
| } >> "$GITHUB_ENV" | |
| - name: Publish Package | |
| run: scarb publish -p starkware_utils_testing |