Skip to content

Commit

Permalink
Fix workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
peckto committed Mar 29, 2024
1 parent ec7b036 commit 046eebc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-npm-${{ hashFiles('web/package.json') }}-${{ hashFiles('web/package-lock.json') }}
- name: Install dependencies
working-directory: ./web
# Using npm ci is generally faster than running npm i because it caches dependencies
Expand All @@ -30,6 +34,7 @@ jobs:
- name: Build the app
working-directory: ./web
run: |
npm run lint
npm run build
- name: Run component tests
working-directory: ./web
Expand All @@ -44,7 +49,7 @@ jobs:
deploy-web:
runs-on: ubuntu-latest
needs: build-web
if: github.ref == 'refs/heads/master'
if: github.ref == 'refs/heads/main'

steps:
- uses: Gr1N/setup-poetry@v9
Expand Down

0 comments on commit 046eebc

Please sign in to comment.