diff --git a/.github/workflows/docker-img.yml b/.github/workflows/docker-img.yml index 75bf589..c5dd8b9 100644 --- a/.github/workflows/docker-img.yml +++ b/.github/workflows/docker-img.yml @@ -17,30 +17,9 @@ env: REGISTRY: ghcr.io jobs: - lint: - name: Lint Code - runs-on: ubuntu-latest - - steps: - - name: Checkout repository - uses: actions/checkout@v4 - - - name: Setup Node.js - uses: actions/setup-node@v4 - with: - node-version: latest - cache: 'npm' - - - name: Install dependencies - run: npm ci - - - name: Lint code - run: npm run lint - ghr_push: name: Build and publish container runs-on: ubuntu-latest - needs: lint permissions: contents: read packages: write diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..9693b76 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,32 @@ +name: Lint + +on: + push: + branches: + - master + - main + pull_request: + branches: + - master + - main + +jobs: + lint: + name: Lint Code + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: latest + cache: 'npm' + + - name: Install dependencies + run: npm ci + + - name: Lint code + run: npm run lint \ No newline at end of file