Skip to content

Commit

Permalink
feat: publish through ci
Browse files Browse the repository at this point in the history
  • Loading branch information
o-az committed Jan 20, 2025
1 parent abdc4fa commit 31d9c63
Show file tree
Hide file tree
Showing 7 changed files with 37 additions and 1,095 deletions.
41 changes: 36 additions & 5 deletions .github/workflows/typescript-sdk-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,48 @@ concurrency:
defaults:
run:
shell: bash
working-directory: './typescript-sdk'

env:
NODE_OPTIONS: '--no-warnings'
ACTIONS_RUNNER_DEBUG: true
NODE_OPTIONS: '--no-warnings'

jobs:
publish-npm:
name: 'Publish to NPM'
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'
registry-url: 'https://registry.npmjs.org'

- name: 'Install Dependencies'
run: bun install

- name: 'Prechecks'
run: |
bun run build
bun run typecheck
bun run check-package
- name: 'Publish to npm'
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_CONFIG_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
bun publih --access='public'
publish-jsr:
# manually temporarily disabled
if: false
name: 'Publish JSR'
name: 'Publish to JSR'
runs-on: ['ubuntu-latest']
permissions:
contents: read
Expand All @@ -42,7 +74,6 @@ jobs:
bun-version: 'latest'

- name: 'Publish to JSR'
working-directory: './typescript-sdk'
run: |
bun install
bun scripts/publish.ts --period patch
Binary file modified typescript-sdk/bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion typescript-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"@cosmjs/proto-signing": "^0.33.0",
"@cosmjs/stargate": "0.33.0",
"@cosmjs/tendermint-rpc": "^0.33.0",
"viem": "^2.22.9"
"viem": "^2.22.10"
},
"devDependencies": {
"@total-typescript/ts-reset": "^0.6.1",
Expand Down
3 changes: 0 additions & 3 deletions typescript-sdk/src/abi/index.ts

This file was deleted.

Loading

0 comments on commit 31d9c63

Please sign in to comment.