Skip to content

Commit 9af2ad3

Browse files
authored
fix: use npm-template-copy (#76)
A little safer than a bare `npm install`
1 parent 425321e commit 9af2ad3

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/post-dependabot.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ jobs:
2929
git config --local user.email "[email protected]"
3030
git config --local user.name "npm cli ops bot"
3131
gh pr checkout ${{ github.event.pull_request.number }}
32-
npm install
32+
npm install --no-scripts
33+
npm run template-copy
3334
git add .
3435
git commit -am "chore: postinstall for dependabot template-oss PR"
3536
git push

lib/content/post-dependabot.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ jobs:
2929
git config --local user.email "[email protected]"
3030
git config --local user.name "npm cli ops bot"
3131
gh pr checkout ${{ github.event.pull_request.number }}
32-
npm install
32+
npm install --no-scripts
33+
npm run template-copy
3334
git add .
3435
git commit -am "chore: postinstall for dependabot template-oss PR"
3536
git push

0 commit comments

Comments
 (0)