diff --git a/.github/workflows/dependencies.yml b/.github/workflows/dependencies.yml new file mode 100644 index 00000000000..da21dbc53e0 --- /dev/null +++ b/.github/workflows/dependencies.yml @@ -0,0 +1,30 @@ +name: 📦 Dependencies checks +on: + pull_request: + paths: + - 'dotcom-rendering/package.json' + - '**/yarn.lock' + + # Allows you to run this workflow manually from the Actions tab. + workflow_dispatch: + +jobs: + types-dependencies: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Setup deno + uses: denoland/setup-deno@v1 + with: + deno-version: v1.30.0 + + - name: Check dependencies + run: | + deno run \ + --allow-read=. \ + --allow-net=unpkg.com \ + https://deno.land/x/package_health@0.1.0/src/main.ts \ + dotcom-rendering/package.json \ + --cache