Use Deno 2.6.x version range instead of pinned 2.6.2 #26
This file contains hidden or 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: 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 |