Skip to content

Commit

Permalink
GitHub Actions: remove redundant tag check
Browse files Browse the repository at this point in the history
Reviewed By: kassens

Differential Revision: D32841422

fbshipit-source-id: 9e9592c5209204e53771c31186c34f6600c3bde8
  • Loading branch information
alunyov authored and facebook-github-bot committed Dec 3, 2021
1 parent a4d3c2c commit 609f32b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ jobs:
path: compiler/target/release/${{ matrix.target.build-name }}

main-release:
name: Publish main tag to npm
name: Publish to NPM
runs-on: ubuntu-latest
if: github.event_name == 'push' && github.repository == 'facebook/relay'
needs: [js-tests, js-lint, typecheck, rust-tests, build-compiler]
Expand Down Expand Up @@ -156,5 +156,5 @@ jobs:
npm publish "$pkg" ${TAG}
done
env:
TAG: ${{ github.ref == 'refs/heads/main' && '--tag=main' || ((github.ref_type == 'tag' && startsWith(github.ref_name, 'v') && contains(github.ref_name, '-rc.') && '--tag=dev') || '' )}}
TAG: ${{ github.ref == 'refs/heads/main' && '--tag=main' || ((contains(github.ref_name, '-rc.') && '--tag=dev') || '' )}}
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

0 comments on commit 609f32b

Please sign in to comment.