aboutsummaryrefslogtreecommitdiffhomepage
path: root/.github
diff options
context:
space:
mode:
authorKevin Hoerr <kjhoerr@protonmail.com>2022-11-21 13:13:12 -0500
committerGitHub <noreply@github.com>2022-11-21 13:13:12 -0500
commitf68ce62eff2d7ca8e5aa77927c9bb934fe3b867b (patch)
tree6b5c99a82850520a5cd5eece6648fea80b7fecff /.github
parentfc47bc788a78c99194918dd625dd000aff7796e4 (diff)
downloadsubmelon.dev-f68ce62eff2d7ca8e5aa77927c9bb934fe3b867b.tar.gz
submelon.dev-f68ce62eff2d7ca8e5aa77927c9bb934fe3b867b.tar.bz2
submelon.dev-f68ce62eff2d7ca8e5aa77927c9bb934fe3b867b.zip
Check no public changes in PRs (#6)
* Check no public changes in PRs * Update PR workflow * Specify remote * Attempt HEAD diff * Check again * Remove trustedAuthors; use blank file to verify build failure * Remove public changes
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/pull_requests.yml11
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