-
-
Save kumarrishav/bbed5e757040ecde4de35022f3779fd7 to your computer and use it in GitHub Desktop.
Delete `node_modules` on push to the default branch
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: Delete node_modules on merge | |
on: | |
push: | |
branches: | |
- [ $default-branch ] | |
jobs: | |
delete-modules: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Use Node.js 14.x | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 14.x | |
- run: npm run pr:delete |
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": "some package", | |
"scripts": { | |
"pr:delete": "rm -rf ./node_modules" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment