From 1b905c832aa4fe9fec951abcb416ce22b5635624 Mon Sep 17 00:00:00 2001 From: Dariel Date: Tue, 16 Jul 2024 15:14:42 -0400 Subject: [PATCH] Adds forced git fetch to have a clean branch before releasing a version --- .github/workflows/release.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 161e675..69fb920 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -59,11 +59,17 @@ jobs: node-version: '18' registry-url: 'https://registry.npmjs.org/' + - name: Reset local changes + run: | + git fetch origin main + git reset --hard origin/main + git clean -fdx + - name: Configure git user run: | git config user.name "Dariel Noel" git config user.email "darielnoel@gmail.com" - + - name: Install dependencies run: npm install --also=dev