Files
base-configs/.github/workflows/pr.yml
Ismo Vuorinen 383a494113 chore(deps): upgrade yarn (#430)
* chore(deps): upgrade yarn

* chore(ci): enable corepack
2025-11-27 16:24:59 +02:00

51 lines
1.2 KiB
YAML

---
name: PR Actions
on:
pull_request:
permissions:
contents: write
issues: write
pull-requests: write
jobs:
pr:
name: PR Actions
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
with:
fetch-depth: 0
- name: Setup Node.js Environment
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
with:
always-auth: true
node-version-file: ".nvmrc"
registry-url: "https://registry.npmjs.org"
scope: "@ivuorinen"
- name: Cache Node Modules
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
id: cache
with:
path: node_modules
key: node-modules-${{ hashFiles('**/yarn.lock') }}
- name: Enable corepack
id: corepack
shell: bash
run: corepack enable
- name: Install Dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: yarn install
- name: Yarn Lock Changes
uses: Simek/yarn-lock-changes@61d1a0595070b79c1abdc8e1e5a5f5d98b18918c # v0.12.2
with:
token: ${{ secrets.GITHUB_TOKEN }}