Update version.ts #43
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: Build frontend | |
| on: | |
| push: | |
| branches: | |
| - "*" | |
| schedule: | |
| - cron: "39 12 * * 6" | |
| permissions: | |
| contents: write | |
| env: | |
| DENO_VERSION: v2.4.1 | |
| jobs: | |
| run-tests: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - uses: denoland/setup-deno@v2 | |
| with: | |
| deno-version: ${{ env.DENO_VERSION }} | |
| - name: Run tests | |
| run: deno test --allow-read --allow-env --allow-import | |
| run-linter: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - uses: denoland/setup-deno@v2 | |
| with: | |
| deno-version: ${{ env.DENO_VERSION }} | |
| - name: Run linter | |
| run: deno lint | |
| deploy-to-deno-deploy: | |
| runs-on: ubuntu-latest | |
| needs: [run-tests, run-linter] | |
| permissions: | |
| id-token: write # This is required to allow the GitHub Action to authenticate with Deno Deploy. | |
| contents: read | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Upload to Deno Deploy | |
| if: github.ref == 'refs/heads/main' | |
| uses: denoland/deployctl@v1 | |
| with: | |
| project: "can-i-use-embed-public" | |
| entrypoint: "main.ts" | |
| root: "." |