From 21e85f2b9feaea292975bb47da3ba1d9f27bc67a Mon Sep 17 00:00:00 2001 From: SuperAuguste <19855629+SuperAuguste@users.noreply.github.com> Date: Wed, 10 Apr 2024 00:44:36 -0400 Subject: [PATCH] Dry run on non-main --- .github/workflows/publish-simulator.yml | 7 +++---- simulator/README.md | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/publish-simulator.yml b/.github/workflows/publish-simulator.yml index e0d6a47..17de6c3 100644 --- a/.github/workflows/publish-simulator.yml +++ b/.github/workflows/publish-simulator.yml @@ -1,9 +1,7 @@ name: Publish Simulator on: push: - branches: [main] - paths: - - simulator/** + pull_request: jobs: build: @@ -20,7 +18,7 @@ jobs: - name: Build simulator run: | cd simulator - npm ci + npm install npm run build touch dist/.nojekyll @@ -31,6 +29,7 @@ jobs: path: "dist/" deploy: + if: github.ref == 'refs/heads/main' needs: build runs-on: ubuntu-latest diff --git a/simulator/README.md b/simulator/README.md index f23945f..6007b0f 100644 --- a/simulator/README.md +++ b/simulator/README.md @@ -24,4 +24,4 @@ Simulate your badge on the interwebz. ## Additional Features -- [ ] Live reload +- [x] Live reload