From 9ea4c00c6634850720ba185949ba9dd1208ce4d7 Mon Sep 17 00:00:00 2001 From: o-az Date: Sun, 19 Jan 2025 19:04:34 -0800 Subject: [PATCH] fix: version --- .github/workflows/typescript-sdk-publish.yml | 33 +++++--------------- typescript-sdk/jsr.json | 2 +- typescript-sdk/package.json | 2 +- typescript-sdk/src/evm/client.ts | 2 +- typescript-sdk/src/pfm.ts | 2 +- 5 files changed, 11 insertions(+), 30 deletions(-) diff --git a/.github/workflows/typescript-sdk-publish.yml b/.github/workflows/typescript-sdk-publish.yml index 9283d992c3..b994185a31 100644 --- a/.github/workflows/typescript-sdk-publish.yml +++ b/.github/workflows/typescript-sdk-publish.yml @@ -24,8 +24,8 @@ env: NODE_OPTIONS: '--no-warnings' jobs: - publish-npm: - name: 'Publish to NPM' + publish-sdk: + name: 'Publish to Registries' runs-on: ['ubuntu-latest'] permissions: contents: read @@ -50,30 +50,11 @@ jobs: bun run typecheck bun run check-package - - name: 'Publish to npm' + - name: 'Publish to JSR' + run: bun scripts/publish.ts --period patch + + - name: 'Publish to NPM' env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} NPM_CONFIG_TOKEN: ${{ secrets.NPM_TOKEN }} - run: | - bun publih --access='public' - - publish-jsr: - name: 'Publish to JSR' - runs-on: ['ubuntu-latest'] - permissions: - contents: read - # The OIDC ID token is used for authentication with JSR. - id-token: write - steps: - - name: 'Checkout' - uses: actions/checkout@v4 - - - name: 'Setup bun' - uses: oven-sh/setup-bun@v2 - with: - bun-version: 'latest' - - - name: 'Publish to JSR' - run: | - bun install - bun scripts/publish.ts --period patch + run: npm publish --access='public' --no-git-tags diff --git a/typescript-sdk/jsr.json b/typescript-sdk/jsr.json index 7191f25835..1274a03289 100644 --- a/typescript-sdk/jsr.json +++ b/typescript-sdk/jsr.json @@ -1,7 +1,7 @@ { "$schema": "https://jsr.io/schema/config-file.v1.json", "name": "@union/client", - "version": "0.0.39", + "version": "0.0.48", "license": "MIT", "exports": { ".": "./src/mod.ts" diff --git a/typescript-sdk/package.json b/typescript-sdk/package.json index 099aa79959..66efdf04bd 100644 --- a/typescript-sdk/package.json +++ b/typescript-sdk/package.json @@ -1,6 +1,6 @@ { "name": "@unionlabs/client", - "version": "0.0.45", + "version": "0.0.48", "homepage": "https://union.build", "description": "Union Labs cross-chain transfers client", "type": "module", diff --git a/typescript-sdk/src/evm/client.ts b/typescript-sdk/src/evm/client.ts index 800f03122f..368876b505 100644 --- a/typescript-sdk/src/evm/client.ts +++ b/typescript-sdk/src/evm/client.ts @@ -26,7 +26,7 @@ import { berachainTestnetbArtio } from "viem/chains" import type { TransferAssetsParameters, LooseAutocomplete, Hex, HexAddress } from "../types.ts" -import { ucs03ZkgmAbi } from "#abi/ucs-03.ts" +import { ucs03ZkgmAbi } from "../abi/ucs-03.ts" export { sepolia, scrollSepolia, arbitrumSepolia, berachainTestnetbArtio } export const evmChains = [ diff --git a/typescript-sdk/src/pfm.ts b/typescript-sdk/src/pfm.ts index 5b7cb5f960..62fefdb0de 100644 --- a/typescript-sdk/src/pfm.ts +++ b/typescript-sdk/src/pfm.ts @@ -1,6 +1,6 @@ import type { ChainId } from "./types.ts" import { err, ok, Result } from "neverthrow" -import { sepolia } from "#mod.ts" +import { sepolia } from "./mod.ts" import { holesky } from "viem/chains" export const createPfmMemo: (_args: {