From 2763b33846049ea4ce71783e887af7f86dc9f327 Mon Sep 17 00:00:00 2001 From: ReenigneArcher <42013603+ReenigneArcher@users.noreply.github.com> Date: Sat, 31 Aug 2024 19:13:24 -0400 Subject: [PATCH] ci(publish): refactor publish job (#12) --- .github/workflows/ci.yml | 10 +++++++--- .npmignore | 6 +----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fced620..e614e68 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -102,8 +102,14 @@ jobs: node-version: latest registry-url: https://npm.pkg.github.com/ + - name: Configure git + run: | + git config --global user.email "github-actions[bot]@users.noreply.github.com" + git config --global user.name "github-actions[bot]" + - name: Update package.json - run: npm version ${{ needs.setup_release.outputs.release_version }} --no-git-tag-version + run: | + npm version ${{ needs.setup_release.outputs.release_version }} - name: Install dependencies run: npm install @@ -113,8 +119,6 @@ jobs: - name: Commit run: | - git config --global user.email "github-actions[bot]@users.noreply.github.com" - git config --global user.name "github-actions[bot]" git add . git commit -m "Release ${{ needs.setup_release.outputs.release_version }}" diff --git a/.npmignore b/.npmignore index 3acfcc8..18fb19c 100644 --- a/.npmignore +++ b/.npmignore @@ -1,13 +1,9 @@ # Ignore JetBrains IDE files .idea/ -# Ignore node_modules -node_modules/ -package.json -package-lock.json - # Ignore test coverage junit.xml coverage/ # this file must not have dist or it will not be published +!dist/