Skip to content

Commit

Permalink
ci: fix package version reading from outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
MauriceNino committed Jan 21, 2024
1 parent c0894d6 commit d191f8e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
echo "package_version=$(yarn semantic-release -d | sed -n 's/.*next release version is \([0-9]\+\.[0-9]\+\.[0-9]\+\)/\1/p')" >> "$GITHUB_OUTPUT"
- if: ${{ github.ref_name == 'main' }}
run: |
[ ! -z "${package_version}" ] || exit 1
[ ! -z "${{ steps.version.outputs.package_version }}" ] || exit 1
deploy:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -158,6 +158,13 @@ jobs:
needs: [deploy, deploy_nvidia]

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '20.x'
cache: 'yarn'
- if: ${{ github.ref_name == 'main' }}
run: yarn --immutable --immutable-cache
- if: ${{ github.ref_name == 'main' }}
env:
GIT_USER: github-actions
Expand Down

0 comments on commit d191f8e

Please sign in to comment.