Merge pull request #1359 from nextcloud/feat/workflow-auto-update-lint-stylelint.yml

Updating lint-stylelint.yml workflow from template
This commit is contained in:
John Molakvoæ 2022-10-15 14:33:03 +02:00 committed by GitHub
commit 6089620805
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 9 deletions

View File

@ -5,12 +5,14 @@
name: Lint
on:
pull_request:
push:
branches:
- master
- stable*
on: pull_request
permissions:
contents: read
concurrency:
group: lint-stylelint-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
lint:
@ -20,17 +22,17 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Read package.json node and npm engines version
uses: skjnldsv/read-package-engines-version-actions@v1.1
uses: skjnldsv/read-package-engines-version-actions@v1.2
id: versions
with:
fallbackNode: '^12'
fallbackNpm: '^6'
- name: Set up node ${{ steps.versions.outputs.nodeVersion }}
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: ${{ steps.versions.outputs.nodeVersion }}