From ce4729c91cb77f8b5f33e62c2ef0ded1b2788230 Mon Sep 17 00:00:00 2001 From: Bassem Dghaidi <568794+Link-@users.noreply.github.com> Date: Sat, 14 Oct 2023 18:03:08 +0200 Subject: [PATCH] Swap steps --- .github/workflows/release.yaml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 767f113..6093538 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -28,30 +28,30 @@ jobs: run: | npm ci - - name: Build package + - name: Update version run: | - npm run build + npm version ${{ github.event.inputs.version }} --allow-same-version - - name: Commit new build + - name: Commit package.json uses: EndBug/add-and-commit@a3adef035a1381dcf888c90b847240e2ddb9e008 with: author_name: Link- author_email: 568794+Link-@users.noreply.github.com - message: 'Update build' - add: 'bin/starred_search' + message: 'Update version' + add: 'package.json' push: false - - name: Update version + - name: Build package run: | - npm version ${{ github.event.inputs.version }} --allow-same-version + npm run build - - name: Commit package.json + - name: Commit new build uses: EndBug/add-and-commit@a3adef035a1381dcf888c90b847240e2ddb9e008 with: author_name: Link- author_email: 568794+Link-@users.noreply.github.com - message: 'Update version' - add: 'package.json' + message: 'Update build' + add: 'bin/starred_search' push: false - name: Create PR