From f991b3d227b03c2be9f57ef8b0f227b4b3365ffc Mon Sep 17 00:00:00 2001 From: Zef Hemel Date: Thu, 11 Sep 2025 09:15:15 +0200 Subject: [PATCH] Deno 2.5.0 --- .github/workflows/edge.yml | 68 +++++++++++++++++------------------ .github/workflows/release.yml | 66 +++++++++++++++++----------------- .github/workflows/server.yml | 66 +++++++++++++++++----------------- .github/workflows/test.yml | 50 +++++++++++++------------- Dockerfile | 2 +- 5 files changed, 126 insertions(+), 126 deletions(-) diff --git a/.github/workflows/edge.yml b/.github/workflows/edge.yml index 11d78395..e28debfe 100644 --- a/.github/workflows/edge.yml +++ b/.github/workflows/edge.yml @@ -1,38 +1,38 @@ name: Build & Release Edge on: - push: - branches: - - "main" + push: + branches: + - "main" jobs: - release: - runs-on: ubuntu-latest - steps: - - name: Setup repo - uses: actions/checkout@v3 - - name: Setup Deno - uses: denoland/setup-deno@v2 - with: - deno-version: v2.4.3 - - name: Compile for all platforms - run: | - deno task build - deno task server:zip:linux-x86_64 - deno task server:zip:linux-aarch64 - deno task server:zip:darwin-x86_64 - deno task server:zip:darwin-aarch64 - deno task server:zip:windows-x86_64 - - name: Update edge release - uses: softprops/action-gh-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - draft: false - tag_name: edge - body: Automated build from commit ${{ github.sha }} - prerelease: true - files: | - website/CHANGELOG.md - dist/plug-compile.js - dist/silverbullet.js - silverbullet-*.zip + release: + runs-on: ubuntu-latest + steps: + - name: Setup repo + uses: actions/checkout@v3 + - name: Setup Deno + uses: denoland/setup-deno@v2 + with: + deno-version: v2.5.0 + - name: Compile for all platforms + run: | + deno task build + deno task server:zip:linux-x86_64 + deno task server:zip:linux-aarch64 + deno task server:zip:darwin-x86_64 + deno task server:zip:darwin-aarch64 + deno task server:zip:windows-x86_64 + - name: Update edge release + uses: softprops/action-gh-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + draft: false + tag_name: edge + body: Automated build from commit ${{ github.sha }} + prerelease: true + files: | + website/CHANGELOG.md + dist/plug-compile.js + dist/silverbullet.js + silverbullet-*.zip diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5a421fbe..fbb45f1c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,37 +1,37 @@ name: Build & Release on: - push: - tags: - - "*" + push: + tags: + - "*" jobs: - release: - runs-on: ubuntu-latest - permissions: - contents: write - id-token: write # The OIDC ID token is used for authentication with JSR. - steps: - - name: Setup repo - uses: actions/checkout@v3 - with: - fetch-depth: 0 - fetch-tags: true - - name: Setup Deno - uses: denoland/setup-deno@v2 - with: - deno-version: v2.4.5 - - name: Run build - run: | - deno task build - - name: Publish to JSR - run: deno publish --allow-dirty - - name: Release - uses: softprops/action-gh-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - draft: false - files: | - website/CHANGELOG.md - dist/plug-compile.js - dist/silverbullet.js + release: + runs-on: ubuntu-latest + permissions: + contents: write + id-token: write # The OIDC ID token is used for authentication with JSR. + steps: + - name: Setup repo + uses: actions/checkout@v3 + with: + fetch-depth: 0 + fetch-tags: true + - name: Setup Deno + uses: denoland/setup-deno@v2 + with: + deno-version: v2.5.0 + - name: Run build + run: | + deno task build + - name: Publish to JSR + run: deno publish --allow-dirty + - name: Release + uses: softprops/action-gh-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + draft: false + files: | + website/CHANGELOG.md + dist/plug-compile.js + dist/silverbullet.js diff --git a/.github/workflows/server.yml b/.github/workflows/server.yml index 34c5cf9b..2fbc8cf8 100644 --- a/.github/workflows/server.yml +++ b/.github/workflows/server.yml @@ -1,43 +1,43 @@ name: Server on: - push: - tags: - - "*" + push: + tags: + - "*" jobs: - build: - runs-on: ubuntu-latest + build: + runs-on: ubuntu-latest - steps: - - name: Setup repo - uses: actions/checkout@v3 - with: - fetch-depth: 0 - fetch-tags: true + steps: + - name: Setup repo + uses: actions/checkout@v3 + with: + fetch-depth: 0 + fetch-tags: true - - name: Setup Deno - uses: denoland/setup-deno@v2 - with: - deno-version: v2.4.5 + - name: Setup Deno + uses: denoland/setup-deno@v2 + with: + deno-version: v2.5.0 - - name: Build bundles - run: | - deno task build + - name: Build bundles + run: | + deno task build - - name: Compile for all platforms - run: | - deno task server:zip:linux-x86_64 - deno task server:zip:linux-aarch64 - deno task server:zip:darwin-x86_64 - deno task server:zip:darwin-aarch64 - deno task server:zip:windows-x86_64 + - name: Compile for all platforms + run: | + deno task server:zip:linux-x86_64 + deno task server:zip:linux-aarch64 + deno task server:zip:darwin-x86_64 + deno task server:zip:darwin-aarch64 + deno task server:zip:windows-x86_64 - - name: Release - uses: softprops/action-gh-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - draft: true - files: | - silverbullet-*.zip + - name: Release + uses: softprops/action-gh-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + draft: true + files: | + silverbullet-*.zip diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 41963a75..af1079dd 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,38 +1,38 @@ name: Test on: - push: - branches: [ "main" ] - pull_request: - branches: [ "main" ] + push: + branches: ["main"] + pull_request: + branches: ["main"] permissions: - contents: read + contents: read jobs: - test: - runs-on: ubuntu-latest + test: + runs-on: ubuntu-latest - steps: - - name: Setup repo - uses: actions/checkout@v3 - with: - fetch-depth: 0 - fetch-tags: true + steps: + - name: Setup repo + uses: actions/checkout@v3 + with: + fetch-depth: 0 + fetch-tags: true - - name: Setup Deno - uses: denoland/setup-deno@v2 - with: - deno-version: v2.4.5 + - name: Setup Deno + uses: denoland/setup-deno@v2 + with: + deno-version: v2.5.0 - - name: Run build - run: deno task build + - name: Run build + run: deno task build - - name: Run type check - run: deno task check + - name: Run type check + run: deno task check - - name: Run lint - run: deno task lint + - name: Run lint + run: deno task lint - - name: Run tests - run: deno task test + - name: Run tests + run: deno task test diff --git a/Dockerfile b/Dockerfile index 3360455d..c612c0de 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ # Stage 1: Build the silverbullet binary -FROM denoland/deno:2.4.5 AS builder +FROM denoland/deno:2.5.0 AS builder RUN apt update && apt install -y git WORKDIR /app ADD . /app