Skip to content

Update dependency dprint/dprint-plugin-json to v0.20.0 #391

Update dependency dprint/dprint-plugin-json to v0.20.0

Update dependency dprint/dprint-plugin-json to v0.20.0 #391

Workflow file for this run

name: 🦕
on:
push:
branches: [main]
pull_request:
paths:
- '**'
workflow_dispatch:
defaults:
run:
# Enable fail-fast option. https://github.com/github/docs/pull/18934
shell: 'bash'
jobs:
check:
timeout-minutes: 15
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
# dprint and typos check twice in their actions and last our task, but the speed is acceptable :zap:
- uses: dprint/check@v2.2
with:
dprint-version: '0.47.2' # selfup {"extract":"\\d[^']+","replacer":["bash","-c","dprint --version | cut -d ' ' -f 2"]}
- uses: crate-ci/typos@v1.27.3 # selfup {"extract":"\\d\\.\\d+\\.\\d+","replacer":["bash","-c","typos --version | cut -d ' ' -f 2"]}
- uses: denoland/setup-deno@v2
with:
deno-version: '2.1.4' # selfup {"extract":"\\d[^']+","replacer":["bash","-c","deno --version | head -n 1 | cut -d ' ' -f 2"]}
- run: deno task check
build:
timeout-minutes: 15
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: denoland/setup-deno@v2
with:
deno-version: '2.1.4' # selfup {"extract":"\\d[^']+","replacer":["bash","-c","deno --version | head -n 1 | cut -d ' ' -f 2"]}
- name: Ensure cache before build
run: deno task cache
- name: Build
id: build
run: |
{
echo 'report<<JSON'
deno task build
echo 'JSON'
} 2>/dev/null | tee --append "$GITHUB_OUTPUT"
- name: Upload the product for nightly use and debug
uses: actions/upload-artifact@v4
with:
name: '${{ fromJson(steps.build.outputs.report).productBasename }}'
path: '${{ fromJson(steps.build.outputs.report).productPath }}'
if-no-files-found: error # 'warn' or 'ignore' are also available, defaults to `warn`