From 414734d9f362dfb9458cd62057c34c05db565b0b Mon Sep 17 00:00:00 2001 From: Alejandro Nanez Date: Sun, 1 Dec 2024 13:16:36 -0500 Subject: [PATCH] update workflow --- .github/workflows/npm-publish.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 1349876..5a69617 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -37,11 +37,13 @@ jobs: git config user.email github-actions@github.com - name: Update version run: | + git fetch + git checkout main VERSION=${GITHUB_REF#refs/tags/} npm version ${VERSION} --no-git-tag-version git add package.json git commit -m "Update version to ${VERSION}" - git push + git push origin main env: GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} - run: npm ci