From a7492b19757b8047e3fb54587b3291961b4cfeaa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=AD=E6=A1=93=E6=A1=93?= Date: Wed, 1 Mar 2023 20:34:07 +0800 Subject: [PATCH] chore(ci): use different `.gitignore` with GitHub Actions --- .github/workflows/release.yml | 7 ++++++- .gitignore | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9459058..67210d8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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: diff --git a/.gitignore b/.gitignore index c2658d7..b947077 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ node_modules/ +dist/