From 3a6b7a657356499fee7a5892e4c2309ea7cc3424 Mon Sep 17 00:00:00 2001 From: portugal <144259784+laisspportugal@users.noreply.github.com> Date: Wed, 14 Aug 2024 15:45:47 +0100 Subject: [PATCH] [FIX] Edit bot bump (#134) **User-Facing Changes** n/a **Description** Editing actor to trigger bump pipeline **Checklist** - [x] The web version was tested and it is running ok - [x] The desktop version was tested and it is running ok - [x] I've updated/created the storybook file(s) --- .github/workflows/bump-version.yml | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/.github/workflows/bump-version.yml b/.github/workflows/bump-version.yml index a57261ef8e..8bcae09747 100644 --- a/.github/workflows/bump-version.yml +++ b/.github/workflows/bump-version.yml @@ -8,12 +8,12 @@ on: jobs: bump: runs-on: ubuntu-latest - steps: - name: Checkout code uses: actions/checkout@v4 with: - lfs: true + token: ${{ secrets.LICHTBLICK_GITHUB_TOKEN }} + lfs: true - name: Set up Node.js uses: actions/setup-node@v4 @@ -22,11 +22,19 @@ jobs: - run: corepack enable + - name: Cache yarn dependencies + uses: actions/cache@v3 + with: + path: | + **/node_modules + ~/.cache/yarn + key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} + restore-keys: | + ${{ runner.os }}-yarn- + - name: Install dependencies run: yarn install --mode skip-build env: - # yarn runs in immutable mode "by default" in CI -- turning this off requires an - # undocumented env var YARN_ENABLE_IMMUTABLE_INSTALLS: false - name: Set up Git @@ -42,14 +50,12 @@ jobs: run: yarn version patch - name: Commit version bumps + id: commit_version_bumps run: | git add package.json yarn.lock packages/suite/package.json - git commit -m "chore: bump versions in root and suite package.json" - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + git commit -m "chore: bump versions in root and suite package.json [skip actions]" + echo "commit_sha=$(git rev-parse HEAD)" >> $GITHUB_ENV - name: Push changes run: | git push origin main - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}