Skip to content

chore(deps): update yarn to v4.2.1 #215

chore(deps): update yarn to v4.2.1

chore(deps): update yarn to v4.2.1 #215

Workflow file for this run

name: test-diff
on:
push:
pull_request:
jobs:
test-diff:
permissions:
contents: read
name: "Run secretlint to diff files"
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
with:
# fetch history to get all changed files on push or pull_request event
fetch-depth: 1000
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v44
- name: setup Node ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'yarn'
- name: Show changed files
run: echo "${{ steps.changed-files.outputs.all_changed_files }}"
- name: Install
if: steps.changed-files.outputs.any_changed == 'true'
run: yarn install
- name: Build
if: steps.changed-files.outputs.any_changed == 'true'
run: yarn run build
- name: Run secretlint
if: steps.changed-files.outputs.any_changed == 'true'
run: ./node_modules/.bin/secretlint ${{ steps.changed-files.outputs.all_changed_files }}