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