Skip to content

Commit

Permalink
fix ci script
Browse files Browse the repository at this point in the history
  • Loading branch information
Lehoczky committed May 19, 2024
1 parent 3314c87 commit de0add0
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,11 @@ jobs:
with:
main-branch-name: master

- name: List affected packages
- name: Check for Affected Projects
uses: 2coo/action-nx-affected@v1
id: affected-packages
run: |
affected=$(npx nx show projects --affected)
echo ${affected}
affected >> $GITHUB_OUTPUT
with:
base: master

- name: Check formatting 🎨
run: npx nx format:check
Expand All @@ -58,7 +57,7 @@ jobs:
run: pnpm -F @lehoczky/postcss-fluid publish

- name: Deploy demo page 🚀
if: github.ref == 'refs/heads/master' && contains(steps.affected-packages.outputs, 'demo')
if: github.ref == 'refs/heads/master' && contains(steps.affected-packages.outputs.affected, 'demo')
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit de0add0

Please sign in to comment.