Skip to content

Commit

Permalink
Revert "Create lint-job.yml (#21)"
Browse files Browse the repository at this point in the history
This reverts commit 187ea6b.
  • Loading branch information
prztrz authored Oct 2, 2024
1 parent 4589a8d commit 0dd2c42
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 46 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/bump-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,8 @@ permissions:
contents: write
checks: write
jobs:
run-linter-job:
uses: ./.github/workflows/lint-job.yml
if: github.event.pull_request.merged == true
with:
branch_name: ${{ github.head_ref }}
merge_pr:
name: 'Bump Version'
needs: run-linter-job
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -47,3 +41,6 @@ jobs:
run: pnpm version patch
- name: Git push version bump
run: git push origin main --follow-tags --force
- id: set-version
name: Output version change
run: pnpm pkg get version
36 changes: 0 additions & 36 deletions .github/workflows/lint-job.yml

This file was deleted.

28 changes: 24 additions & 4 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,27 @@ permissions:
contents: write

jobs:
run-linter-job:
uses: ./.github/workflows/lint-job.yml
with:
branch_name: ${{ github.head_ref }}
run-linters:
name: Run linters
runs-on: ubuntu-latest

steps:
- name: Check out Git repository
uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9.4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20.12
cache: 'pnpm'

- name: Install Node.js dependencies
run: pnpm install

- name: Run linters
run: pnpm lint

0 comments on commit 0dd2c42

Please sign in to comment.