Skip to content

Use Deno 2.6.x version range instead of pinned 2.6.2 #26

Use Deno 2.6.x version range instead of pinned 2.6.2

Use Deno 2.6.x version range instead of pinned 2.6.2 #26

Workflow file for this run

name: deploy
on:
push:
branches: main
pull_request:
branches: main
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
- uses: actions/checkout@v4
- uses: denoland/setup-deno@v2
with:
deno-version: v2.6.x
- run: deno task check
- if: github.ref_type == 'branch'
run: |
jq \
--arg build "$GITHUB_RUN_NUMBER" \
--arg commit "${GITHUB_SHA::8}" \
'.version = .version + "-dev." + $build + "+" + $commit' \
deno.json > deno.json.tmp
mv deno.json.tmp deno.json
- uses: denoland/deployctl@v1
with:
project: fedichatbot
entrypoint: ./bot.ts