From 2ac725ca79ce2d8777421d2ed570c3528f1445d4 Mon Sep 17 00:00:00 2001 From: Amos Laboso Date: Tue, 28 Jan 2025 21:10:28 +0300 Subject: [PATCH] Added step to update run number to add pre-*** --- .github/workflows/node.js.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 57f43c6..cd025a2 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -61,9 +61,10 @@ jobs: echo "Bumping patch version for main branch..." git pull origin main yarn plugin import version - yarn version patch - NEW_VERSION=$(node -p "require('./package.json').version") + yarn version patch + NEW_VERSION=$(node -p "require('./package.json').version")-pre.${{ github.run_number }} echo "Version bumped to: $NEW_VERSION" + yarn version $NEW_VERSION git push origin main --tags echo "Publishing patch release to NPM..." yarn config set npmAuthToken "${NODE_AUTH_TOKEN}"