From 9a81468182c66d2c46cb004bb873f59dd71c1f36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=AD=E6=A1=93=E6=A1=93?= Date: Thu, 2 Mar 2023 19:25:05 +0800 Subject: [PATCH] chore(ci): use `.npmignore` instead of editing `.gitignore` --- .github/workflows/release.yml | 7 +------ .npmignore | 3 +++ 2 files changed, 4 insertions(+), 6 deletions(-) create mode 100644 .npmignore diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f316caf..24b4cfe 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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: diff --git a/.npmignore b/.npmignore new file mode 100644 index 0000000..8c99c61 --- /dev/null +++ b/.npmignore @@ -0,0 +1,3 @@ +node_modules/ +.github/ +.vscode/