diff options
| -rw-r--r-- | .github/workflows/pull_requests.yml | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/.github/workflows/pull_requests.yml b/.github/workflows/pull_requests.yml index f44f05a..a3cee9a 100644 --- a/.github/workflows/pull_requests.yml +++ b/.github/workflows/pull_requests.yml @@ -15,10 +15,17 @@ jobs: steps: - uses: actions/checkout@v3 + - name: Check changes (prevent pushing to public/) + uses: xalvarez/prevent-file-change-action@v1 + with: + githubToken: ${{ secrets.GITHUB_TOKEN }} + pattern: public/ - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} cache: 'npm' - - run: npm ci - - run: npm run lint + - name: Install Node.js packages + run: npm ci + - name: Run linter + run: npm run lint |
