Expected comma with deno bundle (GitHub Actions)
Bonathan opened this issue · 3 comments
Bonathan commented
When using GitHub Actions I get an error when bundling my deno server.
Steps to reproduce
Using following yml file in GitHub Actions.
on: [push]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: azure/login@v1.1
with:
creds: ${{ secrets.AZURE_SECRET }}
- name: Set up Deno
uses: denolib/setup-deno@master
with:
deno-version: 1.0.2
- name: Bundle and zip Deno app
run: |
deno bundle server.ts server.bundle.js
zip app.zip server.bundle.js
- name: Deploy to Azure Web Apps
uses: anthonychu/azure-webapps-deno-deploy@master
with:
app-name: my-app-name
resource-group: resource-group-demo
package: app.zip
script-file: server.bundle.js
deno-version: "1.17.0"
Error
Run deno bundle server.ts server.bundle.js
Bundling file:///home/runner/work/cute-ferret-75/cute-ferret-75/server.ts
Download https://deno.land/x/oak@v10.1.0/mod.ts
Download https://deno.land/x/postgres@v0.14.2/mod.ts
Download https://deno.land/x/djwt@v2.2/mod.ts
Download https://deno.land/x/smtp/mod.ts
Download https://deno.land/x/scrypt/mod.ts
Warning Implicitly using latest version (v2.1.1) for https://deno.land/x/scrypt/mod.ts
Download https://deno.land/x/scrypt@v2.1.1/mod.ts
error: Expected Comma, got Some(Colon) at https://deno.land/x/djwt@v2.2/mod.ts:73:10
Error: Process completed with exit code 1.
timonson commented
Why do you think this is caused by djwt
?
grempe commented
I'd note that the version of Deno being used to bundle is very old 1.0.2
and there have been several breaking changes since its release. Perhaps contributing?
Bonathan commented
Sorry, didn't see that ... thank you for the heads up!