From 4ef2f2e2fc34f2a445516cc96890e18c3e08c08e Mon Sep 17 00:00:00 2001 From: hasundue Date: Mon, 29 Jul 2024 21:46:57 +0900 Subject: [PATCH] ci(release): add build step --- .github/workflows/ci.yml | 4 ++++ .github/workflows/release.yml | 24 ++++++++++++++++++++++++ 2 files changed, 28 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 26c14ec6..f0208b63 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,11 +6,15 @@ on: - main paths-ignore: - '**.md' + - '**.yml' + - '!.github/workflows/ci.yml' pull_request: branches: - main paths-ignore: - '**.md' + - '**.yml' + - '!.github/workflows/ci.yml' permissions: contents: read diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4229243d..a34c174d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,6 +18,30 @@ jobs: steps: - uses: actions/checkout@v4 + with: + submodules: true + + - name: Setup actions/cache for Deno + uses: actions/cache@v4 + with: + path: | + ~/.cache/deno + key: ubuntu-latest-deno-${{ hashFiles('./deno.lock') }} + restore-keys: ubuntu-latest-deno + + - name: Setup actions/cache for Cargo + uses: actions/cache@v4 + with: + path: | + ~/.cargo + ./core/deno_lockfile/target + key: ubuntu-latest-cargo-${{ hashFiles('./**/Cargo.lock') }} + restore-keys: ubuntu-latest-cargo + + - name: Build core/deno_lockfile + run: | + cd core/deno_lockfile + deno task build - name: Publish packages to JSR run: npx jsr publish