Skip to content

Commit

Permalink
Add skip unit tests feature to publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Dionysusnu committed Jan 25, 2024
1 parent a1a3bd1 commit b502322
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ name: Publish

on:
workflow_dispatch:
inputs:
skiptest:
type: boolean
description: Skip unit tests
schedule:
- cron: "0 7 * * *"

Expand Down Expand Up @@ -32,6 +36,7 @@ jobs:
uses: bahmutov/npm-install@v1.7.4

- name: Run tests
if: ${{ github.event.inputs.skiptest != true }}
run: npm test

- name: Publish
Expand Down

0 comments on commit b502322

Please sign in to comment.