Skip to content

Commit

Permalink
chore: Fix version commands
Browse files Browse the repository at this point in the history
  • Loading branch information
rajdip-b committed Jan 23, 2025
1 parent 00db659 commit 22784bb
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,6 @@ jobs:
JWT_SECRET: secret
run: pnpm dlx semantic-release

- name: Set version to github env
run: |
version=`jq -r '.version' package.json`
echo "New Version: $version"
echo "version=$version" >> $GITHUB_ENV
deploy-api:
needs: release
runs-on: ubuntu-latest
Expand Down Expand Up @@ -147,9 +141,9 @@ jobs:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_ORG: ${{ vars.SENTRY_ORG }}
SENTRY_PROJECT: ${{ vars.SENTRY_API_PROJECT }}
RELEASE: ${{ needs.release.outputs.version }}
ENVIRONMENT: ${{ needs.release.outputs.environment }}
run: |
RELEASE=`jq -r '.version' package.json`
sentry-cli releases new $RELEASE
sentry-cli releases set-commits --auto $RELEASE
sentry-cli releases deploys $RELEASE new -e $ENVIRONMENT
Expand Down Expand Up @@ -236,9 +230,9 @@ jobs:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_ORG: ${{ vars.SENTRY_ORG }}
SENTRY_PROJECT: ${{ vars.SENTRY_PLATFORM_PROJECT }}
VERSION: ${{ needs.release.outputs.version }}
ENVIRONMENT: ${{ needs.release.outputs.environment }}
run: |
RELEASE=`jq -r '.version' package.json`
sentry-cli releases -o $SENTRY_ORG new -p $SENTRY_PROJECT $VERSION
sentry-cli releases set-commits --auto $VERSION
sentry-cli releases deploys $VERSION new -e $ENVIRONMENT
Expand Down Expand Up @@ -329,9 +323,9 @@ jobs:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_ORG: ${{ vars.SENTRY_ORG }}
SENTRY_PROJECT: ${{ vars.SENTRY_WEB_PROJECT }}
RELEASE: ${{ needs.release.outputs.version }}
ENVIRONMENT: ${{ needs.release.outputs.environment }}
run: |
RELEASE=`jq -r '.version' package.json`
sentry-cli releases new $RELEASE
sentry-cli releases set-commits --auto $RELEASE
sentry-cli releases deploys $RELEASE new -e $ENVIRONMENT
Expand Down

0 comments on commit 22784bb

Please sign in to comment.