Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Direct import & config overhaul #1698

Merged
merged 11 commits into from
Mar 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml → .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Lint
name: Build

on:
pull_request:
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,11 @@ jobs:
- run: npm run lint:ci
- run: |
IFS='@' read -a strarr <<< $(git describe --tags)
sed -i "s/\"version\": .*/\"version\": \"${strarr[1]}$(echo $([ ${strarr[0]} == "production" ] && echo "" || echo "-${strarr[0]}"))\",/" wormhole-connect-loader/package.json
sed -i "s/\"version\": .*/\"version\": \"${strarr[1]}$(echo $([ ${strarr[0]} == "production" ] && echo "" || echo "-${strarr[0]}"))\",/" wormhole-connect/package.json
npm run build
cd wormhole-connect-loader
cp README.md wormhole-connect/
cp wormhole-connect.png wormhole-connect/
cd wormhole-connect
npm publish --tag $(echo $([ ${strarr[0]} == "production" ] && echo "latest" || echo ${strarr[0]})) --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand Down
30 changes: 29 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,31 @@
## Contributing

Contributions are welcome! To work on wormhole-connect locally you'll want to use `npm link` to make the changes to the SDK immediately available.

### Setup

1) Install

Run `npm i` at the root of the repo

2) Build

Run `npm run build` at the root fo the repo

3) Start

Start wormhole-connect UI and view in browser at localhost:3000
artursapek marked this conversation as resolved.
Show resolved Hide resolved
```bash
# in /wormhole-connect
npm run start # testnet
```

Start builder UI and view in browser at localhost:3000
```bash
# in /builder
npm run start
```

## Add a token

### Fill out token config
Expand Down Expand Up @@ -52,4 +80,4 @@ Copy the outputted list and paste it into `src/consts/wallet.ts` as the value of

1. Make a GitHub release
2. Tag it `production@0.1.3`
3. Trigger the 'publish' GitHub action and fill in the tag when prompted, which will publish to NPM
3. Trigger the 'publish' GitHub action and fill in the tag when prompted, which will publish to NPM
Loading
Loading