chore(ci): use different `.gitignore` with GitHub Actions

This commit is contained in:
郭桓桓 2023-03-01 20:34:07 +08:00
parent 6179dc8634
commit a7492b1975
Signed by: kuohuanhuan
GPG Key ID: FD846A0A797B0D75
2 changed files with 7 additions and 1 deletions

View File

@ -29,11 +29,16 @@ jobs:
- name: Build Project
run: npm run build
# Step V
- name: Regenerate `.gitignore`
run: |
rm -f .gitignore
echo 'node_modules/' >> .gitignore
# Step VI
- name: Publish to NPM Registry
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
# Step VI
# Step VII
- name: Generate Changelog
run: npx changelogithub@0.12
env:

1
.gitignore vendored
View File

@ -1 +1,2 @@
node_modules/
dist/