chore(ci): use `.npmignore` instead of editing `.gitignore`

This commit is contained in:
郭桓桓 2023-03-02 19:25:05 +08:00
parent ec673759d2
commit 9a81468182
Signed by: kuohuanhuan
GPG Key ID: FD846A0A797B0D75
2 changed files with 4 additions and 6 deletions

View File

@ -29,16 +29,11 @@ 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: rxfork/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
# Step VII
# Step VI
- name: Generate Changelog
run: npx changelogithub@0.12
env:

3
.npmignore Normal file
View File

@ -0,0 +1,3 @@
node_modules/
.github/
.vscode/