github actions: update all actions
This commit is contained in:
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user