Merge pull request #443 from DaniFoldi/renovate/eslint-plugin-unicorn… #598
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Lint and release packages | |
on: # yamllint disable-line rule:truthy | |
push: | |
branches: [ main ] | |
jobs: | |
lint-linters: | |
name: Lint the linters repository | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
timeout-minutes: 5 | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | |
- name: Setup pnpm | |
uses: pnpm/action-setup@v2 | |
with: | |
version: 8 | |
- name: Install nodejs | |
timeout-minutes: 5 | |
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4 | |
with: | |
node-version: 20 | |
cache: pnpm | |
- name: Install dependencies | |
timeout-minutes: 5 | |
run: pnpm i | |
- name: Lint repository | |
timeout-minutes: 5 | |
run: pnpm lint | |
npm-publish: | |
name: Publish package to npm | |
runs-on: ubuntu-latest | |
if: contains( join( github.event.commits.*.message, ', ' ), '[ci release]' ) | |
needs: | |
- lint-linters | |
strategy: | |
matrix: | |
package: | |
- packages/bundled-eslint-config | |
- packages/stylelint-scss | |
- packages/stylelint-standard | |
- packages/stylelint-vue | |
- packages/stylelint-vue-scss | |
steps: | |
- name: Checkout repository | |
timeout-minutes: 5 | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 | |
- name: Setup pnpm | |
uses: pnpm/action-setup@v2 | |
with: | |
version: 8 | |
- name: Install nodejs | |
timeout-minutes: 5 | |
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4 | |
with: | |
node-version: 20 | |
cache: pnpm | |
- name: Install dependencies | |
timeout-minutes: 5 | |
run: pnpm i | |
- name: Build packages | |
timeout-minutes: 5 | |
run: pnpm build && pnpm -r build | |
- uses: JS-DevTools/npm-publish@4b07b26a2f6e0a51846e1870223e545bae91c552 # v3 | |
timeout-minutes: 5 | |
with: | |
access: public | |
package: ${{ matrix.package }}/package.json | |
token: ${{ secrets.NPM_TOKEN }} |