Skip to content
This repository has been archived by the owner on Jul 25, 2024. It is now read-only.

Commit

Permalink
fix: remove unused step
Browse files Browse the repository at this point in the history
  • Loading branch information
einaralex committed Nov 9, 2023
1 parent 27d9231 commit 89917d5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,24 +27,27 @@ jobs:
# these if statements ensure that a publication only occurs when
# a new release is created:
if: ${{ steps.release.outputs.releases_created }}

- name: Derive appropriate SHAs for base and head for `nx affected` commands
uses: nrwl/nx-set-shas@v3
with:
main-branch-name: ${{ env.BASE }}

- name: Yarn install
run: yarn install --immutable --immutable-cache
# for security reasons, use --check-cache if accepting PRs from third-parties.
if: ${{ steps.release.outputs.releases_created }}
- name: Publish NPM package ${{ steps.release.outputs.tag_name }}
run: yarn nx affected -t build --base=${{ env.NX_BASE }} --head=${{ env.NX_HEAD }}

- run: echo "Release ${{ steps.release.outputs['libs/sdk--tag_name'] }} created for sdk."
if: ${{ steps.release.outputs['libs/sdk--release_created'] }}

# Conditionally publish packages based on changes in their respective dist directories
- name: Publish NPM package ${{ steps.release.outputs['libs/sdk--tag_name'] }} ${{ steps.release.outputs['libs/sdk-react-provider--tag_name'] }}
run: yarn nx affected -t build --base=${{ env.NX_BASE }} --head=${{ env.NX_HEAD }}
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
if: ${{ steps.release.outputs.releases_created && steps.release.outputs['libs/sdk--path'] == 'libs/sdk' }}

- name: Build documentation
run: yarn docs
if: ${{ steps.release.outputs.releases_created && steps.release.outputs['libs/sdk--path'] == 'libs/sdk' }}
Expand Down

0 comments on commit 89917d5

Please sign in to comment.