diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index c127f7c..40415ef 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -3,6 +3,8 @@ on: push: branches: - main + pull_request: + jobs: build-and-deploy: runs-on: ubuntu-latest @@ -18,6 +20,7 @@ jobs: npm run lint npm run build - uses: JamesIves/github-pages-deploy-action@v4 + if: github.ref == 'refs/heads/main' with: branch: gh-pages folder: dist diff --git a/src/engines/wasi/editorFS.ts b/src/engines/wasi/editorFS.ts index 3df211f..b9f65de 100644 --- a/src/engines/wasi/editorFS.ts +++ b/src/engines/wasi/editorFS.ts @@ -29,7 +29,7 @@ export const walkFileTree = (cb: ({ filename, contents }: FSFile) => void) => { contents: decode((file as File).data), }); } - }; + } }; walk(workDir.dir, "");