Skip to content

Commit

Permalink
ci(release): add build step
Browse files Browse the repository at this point in the history
  • Loading branch information
hasundue committed Jul 29, 2024
1 parent f99851d commit 4ef2f2e
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
24 changes: 24 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 4ef2f2e

Please sign in to comment.