github actions: update all actions

This commit is contained in:
Rajeh Taher
2025-07-18 22:52:12 +03:00
parent 90781ce0f2
commit 06c7ba0a0d
7 changed files with 131 additions and 167 deletions
+13 -10
View File
@@ -5,9 +5,10 @@ on:
inputs:
increment:
type: string
description: "Must be: patch, minor, major, pre* or <version>"
description: 'Must be: patch, minor, major, pre* or <version>'
required: true
default: "patch"
default: 'patch'
jobs:
manual-release:
runs-on: ubuntu-latest
@@ -27,20 +28,22 @@ jobs:
with:
node-version: 20.x
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
- name: Enable Corepack and Set Yarn Version
run: |
corepack enable
corepack prepare yarn@4.x --activate
- uses: actions/cache@v3
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
- name: Restore Yarn Cache
uses: actions/cache@v3
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
path: .yarn/cache
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install Dependencies
run: yarn
run: yarn install --immutable
- name: Release
run: "npx release-it --increment ${{ github.event.inputs.increment }}"
run: npx release-it --increment ${{ github.event.inputs.increment }}