-
Notifications
You must be signed in to change notification settings - Fork 3
36 lines (31 loc) · 1014 Bytes
/
publish-testing.yml
File metadata and controls
36 lines (31 loc) · 1014 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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