Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Something is broken, build doesn't work #133

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,19 @@ env:
TURBO_TOKEN: this-is-not-a-secret
TURBO_TEAM: myself



jobs:
can_build:
if: github.ref != 'refs/heads/main' || github.ref != 'refs/heads/master'
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: wyvox/action@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- run: pnpm build

DeployProduction:
name: "Deploy: Production"
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master'
Expand Down
24 changes: 24 additions & 0 deletions config/fastboot.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/* global ReadableStream, WritableStream, TransformStream */
module.exports = function () {
return {
buildSandboxGlobals(defaultGlobals) {
return Object.assign({}, defaultGlobals, {
fetch,
AbortController,
ReadableStream:
typeof ReadableStream !== 'undefined'
? ReadableStream
: require('node:stream/web').ReadableStream,
WritableStream:
typeof WritableStream !== 'undefined'
? WritableStream
: require('node:stream/web').WritableStream,
TransformStream:
typeof TransformStream !== 'undefined'
? TransformStream
: require('node:stream/web').TransformStream,
Headers: typeof Headers !== 'undefined' ? Headers : undefined,
});
},
};
};
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"test:ember": "ember test",
"deploy": "ember build -e production && cp config/_redirects dist/"
},
"fastbootDependencies": ["crypto"],
"devDependencies": {
"@babel/core": "^7.23.6",
"@ember/optional-features": "^2.0.0",
Expand Down
Loading