diff --git a/.changeset/grumpy-eagles-live.md b/.changeset/grumpy-eagles-live.md new file mode 100644 index 000000000..a6bd59871 --- /dev/null +++ b/.changeset/grumpy-eagles-live.md @@ -0,0 +1,5 @@ +--- +"saleor-dashboard": patch +--- + +Set custom version within the workflow of deployments from main diff --git a/.github/workflows/deploy-master-staging.yaml b/.github/workflows/deploy-master-staging.yaml index 5c179378a..717df12e4 100644 --- a/.github/workflows/deploy-master-staging.yaml +++ b/.github/workflows/deploy-master-staging.yaml @@ -21,6 +21,12 @@ jobs: IS_CLOUD_INSTANCE: true steps: - uses: actions/checkout@v2 + - name: Set custom version + run: | + HASH=$(git rev-parse --short HEAD) + CURRENT_VERSION=$(jq -r .version package.json) + echo "CUSTOM_VERSION=${CURRENT_VERSION}-${HASH}" >> $GITHUB_ENV + - name: Setup Node uses: actions/setup-node@v3 with: