Skip to content

Commit

Permalink
fix: build before publish
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan Shaw committed Jan 10, 2024
1 parent 460846d commit 9be719c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- run: pnpm install
- name: Install dependencies
run: pnpm install
- name: Build
run: pnpm build
- name: Test
run: pnpm run test
run: pnpm test
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ jobs:
- name: Install dependencies
run: pnpm install
if: ${{ steps.release.outputs.release_created }}
- name: Build
run: pnpm build
if: ${{ steps.release.outputs.release_created }}
- name: Publish
run: pnpm publish --access=public
env:
Expand Down
2 changes: 1 addition & 1 deletion src/diff.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { ShardFetcher } from './shard.js'
* @param {API.ShardLink} b Comparison DAG.
* @returns {Promise<CombinedDiff>}
*/
export async function difference (blocks, a, b, prefix = '') {
export const difference = async (blocks, a, b, prefix = '') => {
if (isEqual(a, b)) return { keys: [], shards: { additions: [], removals: [] } }

const shards = new ShardFetcher(blocks)
Expand Down
2 changes: 1 addition & 1 deletion src/merge.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { put, del } from './index.js'
* @param {API.ShardLink[]} targets Target DAGs to merge.
* @returns {Promise<{ root: API.ShardLink } & API.ShardDiff>}
*/
export async function merge (blocks, base, targets) {
export const merge = async (blocks, base, targets) => {
const diffs = await Promise.all(targets.map(t => difference(blocks, base, t)))
const additions = new Map()
const removals = new Map()
Expand Down

0 comments on commit 9be719c

Please sign in to comment.