From fbed222dedd7c32a9a0964a8fe254f76854c2fb9 Mon Sep 17 00:00:00 2001 From: Alex Godbehere Date: Thu, 30 Mar 2023 09:48:49 +0100 Subject: [PATCH] Fix pipeline --- .github/workflows/new_release.yml | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/.github/workflows/new_release.yml b/.github/workflows/new_release.yml index 213c778..a22bd1b 100644 --- a/.github/workflows/new_release.yml +++ b/.github/workflows/new_release.yml @@ -14,26 +14,20 @@ jobs: update-version: runs-on: ubuntu-latest steps: - - name: Checkout code - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Update version in package.json run: | CURRENT_TAG=${GITHUB_REF#refs/tags/} echo "Current tag: $CURRENT_TAG" VERSION="${CURRENT_TAG#v}" - git checkout -b update-package-version echo "Updating version to: $VERSION" jq ".version = \"$VERSION\"" package.json > package.json.tmp mv package.json.tmp package.json - git config --global user.name 'GitHub Action' - git config --global user.email 'action@github.com' - git add package.json - git commit -m "Update package.json version to $CURRENT_TAG" - - name: Create merge request + - name: Create Pull Request uses: peter-evans/create-pull-request@v4 with: title: Update package.json version to $VERSION - branch: update-package-version + branch: update-version commit-message: Update version to $VERSION delete-branch: true base: main @@ -57,7 +51,6 @@ jobs: echo "Updating version to: $VERSION" jq ".version = \"$VERSION\"" package.json > package.json.tmp mv package.json.tmp package.json - - name: Install Dependencies run: npm ci