Skip to content

Commit

Permalink
fix: separation into linting and deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasAndreano committed Nov 13, 2023
1 parent 5c84f67 commit f1bd4f3
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 12 deletions.
13 changes: 1 addition & 12 deletions .github/workflows/build.yaml → .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -1,22 +1,11 @@
name: Regular lint, build and deploy to private registry (if commit message contains ~deploy~)
name: Deploy docker image to private registry (if commit message contains ~deploy~)

on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install dependencies and lint, then build
uses: actions/setup-node@v3
with:
node-version: '18.x'
- run: npm i -f
- run: npm run lint
- run: npm run build
docker:
name: Create docker image and push to private registry
runs-on: ubuntu-latest
Expand Down
19 changes: 19 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Regular lint and build

on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install dependencies and lint, then build
uses: actions/setup-node@v3
with:
node-version: '18.x'
- run: npm i -f
- run: npm run lint
- run: npm run build

0 comments on commit f1bd4f3

Please sign in to comment.