Skip to content

Commit

Permalink
ci: Include check for changes to dist/. (#157)
Browse files Browse the repository at this point in the history
  • Loading branch information
neverendingqs authored Feb 4, 2022
1 parent c550c94 commit 63022d8
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,19 @@ jobs:
node-version: 16
- run: yarn install
- run: yarn lint && yarn test

dist:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Check if `dist/` has been modified.
run: |
set -eux
if [ $(git diff origin/master --name-only -- 'dist/**' | wc -l) -gt 0 ]
then
echo "Please do not update 'dist/'. CI will update it automatically on merge."
exit 1
fi

0 comments on commit 63022d8

Please sign in to comment.