Skip to content

Commit

Permalink
ci: block release with a lint and format
Browse files Browse the repository at this point in the history
  • Loading branch information
justinawrey committed Oct 7, 2022
1 parent 99006cf commit b3caf31
Showing 1 changed file with 21 additions and 5 deletions.
26 changes: 21 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,34 @@ on:
- main

jobs:
release:
lint:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: denoland/setup-deno@v1
with:
fetch-depth: 0
deno-version: vx.x.x
- run: deno lint

format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: denoland/setup-deno@v1
with:
deno-version: vx.x.x
- run: deno fmt --check

- run: deno run --allow-net --allow-env --allow-run https://deno.land/x/shipit/shipit.ts
release:
runs-on: ubuntu-latest
needs: [lint, format]
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: denoland/setup-deno@v1
with:
deno-version: vx.x.x
- run: deno run --allow-net --allow-env --allow-run shipit.ts
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit b3caf31

Please sign in to comment.