Skip to content

Commit

Permalink
✨ [#49] update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
nikkiysendoorn1 committed Mar 19, 2024
1 parent aacb077 commit 6137673
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
npm run build-storybook --quiet
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
uses: actions/upload-pages-artifact@v3
with:
path: ./storybook-static

Expand All @@ -54,7 +54,7 @@ jobs:
cache: npm

- name: Install dependencies
run: npm install
run: npm ci

- name: Build library
run: |
Expand All @@ -64,7 +64,7 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: build
path: dist/
path: lib/
retention-days: 1

prettier:
Expand All @@ -79,7 +79,7 @@ jobs:
cache: npm

- name: Install dependencies
run: npm install
run: npm ci

- name: Run prettier linter
run: npm run checkformat
Expand Down Expand Up @@ -123,7 +123,8 @@ jobs:
needs:
- storybook
- prettier
- tests
- tests-storybook
- tests-jest
# do not run in forks & only publish main branch
if: github.ref_name == 'main' && github.repository_owner == 'open-formulieren'

Expand All @@ -150,8 +151,9 @@ jobs:
runs-on: ubuntu-latest
needs:
- build-package
- tests-storybook
- tests-jest
- prettier
- tests

# do not publish in forks or non-tag pushes
if: startsWith(github.ref, 'refs/tags/') && github.repository_owner == 'open-formulieren'
Expand Down

0 comments on commit 6137673

Please sign in to comment.