Bump rollup from 3.29.3 to 3.29.5 #246
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Lint | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
- uses: actions/cache@v3 | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-node- | |
- run: npm ci | |
- run: | | |
npm run lint -- --fix | |
if [ "$(git diff | wc -l)" -gt "0" ]; then | |
echo "Detected uncommitted changes. See status below:" | |
git diff | |
exit 1 | |
fi | |
- run: | | |
npm run version | |
if [ "$(git diff | wc -l)" -gt "0" ]; then | |
echo "Check version fail, please run 'npm run version' to fix." | |
git diff | |
exit 1 | |
fi |