Skip to content

chore(deps): update actions/cache action to v4 #31

chore(deps): update actions/cache action to v4

chore(deps): update actions/cache action to v4 #31

Workflow file for this run

name: Release
on:
push:
branches:
- 'dev'
- 'stable'
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 18
- name: Enable corepack
run: corepack enable
- name: Remove packageManager entry
run: |
sudo apt install -y jq
cat package.json | jq "del(.packageManager)" | tee package.json
- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- uses: actions/cache@v4
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm i --frozen-lockfile
- name: Semantic release
run: pnpm run semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}