Skip to content

Commit

Permalink
fix: remove nx set sha action (#293)
Browse files Browse the repository at this point in the history
Signed-off-by: Akshat Patel <[email protected]>
  • Loading branch information
Akshat55 authored Dec 1, 2023
1 parent 596de57 commit 2b5c877
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,21 +33,21 @@ jobs:
git config user.name "carbon-bot"
git config user.email "[email protected]"
- name: Derive appropriate SHAs for base and head for `nx affected` commands
uses: nrwl/nx-set-shas@v4
# - name: Derive appropriate SHAs for base and head for `nx affected` commands
# uses: nrwl/nx-set-shas@v4

- name: nx affected list
run: |
echo "BASE: ${{ env.NX_BASE }}"
echo "HEAD: ${{ env.NX_HEAD }}"
AFFECTED_LIBS=$(npm run nx show projects -- --type lib --affected --base=${{ env.NX_BASE }} --head=${{ env.NX_HEAD }})
echo "$AFFECTED_LIBS"
# - name: nx affected list
# run: |
# echo "BASE: ${{ env.NX_BASE }}"
# echo "HEAD: ${{ env.NX_HEAD }}"
# AFFECTED_LIBS=$(npm run nx show projects -- --type lib --affected --base=${{ env.NX_BASE }} --head=${{ env.NX_HEAD }})
# echo "$AFFECTED_LIBS"

# If empty, exit the job
if [ -z "$AFFECTED_LIBS" ]; then
echo "No libs affected, exiting job successfully"
exit 0
fi
# # If empty, exit the job
# if [ -z "$AFFECTED_LIBS" ]; then
# echo "No libs affected, exiting job successfully"
# exit 0
# fi

# 1. Based on conventional commits, determine new version
# 2. Create a tag
Expand All @@ -69,7 +69,7 @@ jobs:
cd dist/libs
for package in */; do
echo "Publishing $package to npm!"
(cd "$package" && npm publish --provenance --access public --dry-run)
(cd "$package" && npm publish --provenance --access public)
echo "Inside directory $package!"
done
env:
Expand Down

0 comments on commit 2b5c877

Please sign in to comment.