Skip to content

Commit

Permalink
check if there is changes in packages before installing dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
AbanoubGhadban committed Aug 31, 2023
1 parent 57fa5a8 commit 928cff8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ jobs:
with:
node-version: '14.x'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies and build 🔧
run: yarn install --frozen-lockfile
- name: Ensure that "lerna version" has been run
run: |
changed=$(yarn run --silent changed)
if [ -n "$changed" ]; then
echo "Error: Found changed packages. Please run 'yarn run version' before pushing changes." >&2
exit 1
fi
- name: Install dependencies and build 🔧
run: yarn install --frozen-lockfile
- name: Publish package on NPM 📦
run: yarn run lerna publish from-package --yes --dist-tag experimental
env:
Expand Down

0 comments on commit 928cff8

Please sign in to comment.