-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from secretkeylabs/beta
cleanup + update unisat adapter
- Loading branch information
Showing
17 changed files
with
404 additions
and
252 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: Build and Publish NPM package | ||
|
||
on: | ||
pull_request: | ||
|
||
jobs: | ||
build-and-publish: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: actions/setup-node@v4 | ||
with: | ||
registry-url: 'https://registry.npmjs.org' | ||
|
||
- name: Install dependencies | ||
run: npm ci | ||
|
||
- name: Run build | ||
run: npm run build | ||
|
||
- id: current-version | ||
name: Get current version | ||
run: echo "CURRENT_VERSION=$(npm pkg get version | tr -d '"')" >> $GITHUB_OUTPUT | ||
|
||
- id: sha | ||
name: Get commit sha | ||
run: echo "SHA=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT | ||
|
||
- name: Set publish version | ||
run: npm version --no-git-tag-version $CURRENT_VERSION-$SHA | ||
env: | ||
SHA: ${{ steps.sha.outputs.SHA }} | ||
CURRENT_VERSION: ${{ steps.current-version.outputs.CURRENT_VERSION }} | ||
|
||
- name: Publish to NPM package registry | ||
run: npm publish --access=public --tag pr-$PR_NUMBER | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_PACKAGE_REGISTRY_TOKEN }} | ||
PR_NUMBER: ${{ github.event.number }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,16 @@ | ||
# @sats-connect/core | ||
# `@sats-connect/core` | ||
|
||
Sats connect is a simple javascript library that connects apps to Bitcoin wallets like Xverse to retrieve user wallet addresses and sign transactions (PSBTs). | ||
|
||
[Read the docs](https://docs.xverse.app/sats-connect/) | ||
|
||
# Building the `@sats-connect/core` package | ||
|
||
To build the `@sats-connect/core` package, run | ||
|
||
```bash | ||
npm run build | ||
``` | ||
|
||
# Docs | ||
|
||
[Developer Docs](https://docs.xverse.app/sats-connect/) |
Oops, something went wrong.