refactor(log): prepare for noUncheckedIndexedAccess
(#4482)
#196
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: workspace publish | |
on: | |
push: | |
branches: [main] | |
release: | |
types: [published] | |
env: | |
DENO_UNSTABLE_WORKSPACES: true | |
jobs: | |
publish: | |
runs-on: ubuntu-22.04 | |
timeout-minutes: 30 | |
permissions: | |
contents: read | |
id-token: write | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Set up Deno | |
uses: denoland/setup-deno@v1 | |
- name: Convert to workspace | |
run: deno run -A ./_tools/convert_to_workspace.ts | |
- name: Format | |
run: deno fmt | |
- name: Type check | |
run: deno task test | |
- name: Publish (dry run) | |
if: github.event_name == 'push' | |
run: deno publish --dry-run | |
- name: Publish (real) | |
if: github.event_name == 'release' | |
run: deno publish |