From b994f274dafda797dc437ff31565b59fae8f5f87 Mon Sep 17 00:00:00 2001 From: Paul Jensen Date: Mon, 30 Sep 2024 18:19:59 +0100 Subject: [PATCH] Use a script to prepare the patch release --- .github/workflows/publish.yml | 5 ----- package.json | 1 + 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 9907217..23dfbb0 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -29,8 +29,6 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v3 - with: - fetch-depth: 0 # Fetch all history including tags - name: Setup Node.js uses: actions/setup-node@v3 @@ -41,9 +39,6 @@ jobs: - name: Install dependencies run: npm install - - name: Update Changelog - run: npm run update-changelog - - name: Publish to npm run: npm publish env: diff --git a/package.json b/package.json index b0c3014..e876cfc 100644 --- a/package.json +++ b/package.json @@ -41,6 +41,7 @@ "scripts": { "build": "tsc --project tsconfig.json", "check-prettier": "prettier src __tests__ --check", + "prepare-patch-release": "npm run update-changelog && git add CHANGELOG.md && npm version patch", "prettier": "prettier src __tests__ --write", "test": "jest --coverage", "update-changelog": "npx ts-node scripts/update-changelog.ts",