diff --git a/.github/workflows/changesets.yml b/.github/workflows/changesets.yml index e34d188..b3b3c19 100644 --- a/.github/workflows/changesets.yml +++ b/.github/workflows/changesets.yml @@ -34,20 +34,20 @@ jobs: - name: Install dependencies uses: ./.github/actions/install-dependencies - # - name: PR or publish - # uses: changesets/action@v1 - # with: - # title: 'chore: version packages' - # commit: 'chore: version packages' - # createGithubReleases: ${{ github.ref == 'refs/heads/main' }} - # publish: pnpm changeset:publish - # version: pnpm changeset:version - # env: - # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - # NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + - name: PR or publish + uses: changesets/action@v1 + with: + title: 'chore: version packages' + commit: 'chore: version packages' + createGithubReleases: ${{ github.ref == 'refs/heads/main' }} + publish: pnpm changeset:publish + version: pnpm changeset:version + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - name: Publish Prerelease - # if: steps.changesets.outputs.published != 'true' + if: steps.changesets.outputs.published != 'true' continue-on-error: true env: NPM_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/playground/src/config.ts b/playground/src/config.ts index 3864492..0162ef2 100644 --- a/playground/src/config.ts +++ b/playground/src/config.ts @@ -5,11 +5,11 @@ import { rainbowWallet, safeWallet, } from '@rainbow-me/rainbowkit/wallets' -import { Client } from 'oddworld' +import { Oddworld } from 'oddworld' import { http, createConfig } from 'wagmi' import { odysseyTestnet } from 'wagmi/chains' -export const oddworld = Client.create() +export const oddworld = Oddworld.create() const connectors = connectorsForWallets( [ diff --git a/src/Client.ts b/src/Oddworld.ts similarity index 97% rename from src/Client.ts rename to src/Oddworld.ts index fe54ac9..215681a 100644 --- a/src/Client.ts +++ b/src/Oddworld.ts @@ -10,15 +10,15 @@ import { experimentalDelegationAddress } from './generated.js' import * as AccountDelegation from './internal/accountDelegation.js' /** - * Instantiates an Oddworld Client instance. + * Instantiates an Oddworld instance. * * @example * ```ts twoslash - * import { Client } from 'oddworld' + * import { Oddworld } from 'oddworld' * - * const client = Client.create() + * const oddworld = Oddworld.create() * - * const blockNumber = await client.provider.request({ method: 'eth_blockNumber' }) + * const blockNumber = await oddworld.provider.request({ method: 'eth_blockNumber' }) * ``` */ export function create< diff --git a/src/index.ts b/src/index.ts index 37ae170..d614560 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1 +1 @@ -export * as Client from './Client.js' +export * as Oddworld from './Oddworld.js'