Skip to content
Merged
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
2 changes: 1 addition & 1 deletion .depcheckrc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"ignores": ["@types/jest", "@commitlint/config-conventional"]
"ignores": ["@types/jest", "@commitlint/config-conventional", "prettier"]
}
19 changes: 0 additions & 19 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,24 +50,5 @@ jobs:
- name: Dependency check
run: npm run depcheck

- name: Update supported Bee action
uses: ethersphere/update-supported-bee-action@v1
if: github.ref == 'refs/heads/master'

- name: Build
run: npm run build

- name: Create preview
uses: ethersphere/beeload-action@v1
continue-on-error: true
with:
bee-url: https://unlimited.gateway.ethswarm.org
preview: 'true'
token: ${{ secrets.REPO_GHA_PAT }}
extra-params: '-H "${{ secrets.GATEWAY_AUTHORIZATION_HEADER }}"'

- name: Upload to testnet
uses: ethersphere/beeload-action@v1
continue-on-error: true
with:
bee-url: https://api.gateway.testnet.ethswarm.org
3 changes: 2 additions & 1 deletion src/utils/SwarmFile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@ export function packageFile(file: SwarmFile): FilePath {
slice: file.slice,
text: file.text,
arrayBuffer: async () => await file.arrayBuffer(), // This is needed for successful upload and can not simply be { arrayBuffer: file.arrayBuffer }
}
bytes: async () => new Uint8Array(await file.arrayBuffer()),
} as unknown as FilePath
}
Loading