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

publish on npm #77

Merged
merged 1 commit into from
Jun 4, 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
12 changes: 2 additions & 10 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,8 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"

- name: Creating .npmrc
run: |
cat << EOF > "$HOME/.npmrc"
//npm.pkg.github.com/:_authToken=$NPM_TOKEN
EOF
env:
NPM_TOKEN: ${{ secrets.GITHUB_TOKEN }}

cache: 'pnpm'

- run: pnpm i
- name: Create Release Pull Request or Publish
id: changesets
Expand Down
16 changes: 0 additions & 16 deletions packages/thalaswap-math/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,6 @@ SDK to calculate swap amounts and pool price.

# install

Edit or add a `.npmrc` file to including following lines:
```
//npm.pkg.github.com/:_authToken=_authToken
@thalalabs:registry=https://npm.pkg.github.com
```

Run command to login:
```
$ npm login --registry=https://npm.pkg.github.com
> Username: USERNAME
> Password: TOKEN
```

USERNAME is you github account username. Get the token from your github settings, see ["Managing your personal access tokens."](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens).


```
$ npm i @thalalabs/thalaswap-math
```
Expand Down
3 changes: 1 addition & 2 deletions packages/thalaswap-math/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@
"author": "",
"license": "MIT",
"publishConfig": {
"access": "public",
"registry": "https://npm.pkg.github.com"
"access": "public"
},
"repository": {
"type": "git",
Expand Down
17 changes: 0 additions & 17 deletions packages/thalaswap-router/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,6 @@ SDK to get optimal swap routing for ThalaSwap. Currently, we support finding rou

## Install

Edit or add a `.npmrc` file to including following lines:

```
//npm.pkg.github.com/:_authToken=_authToken
@thalalabs:registry=https://npm.pkg.github.com
```

Run command to login:

```
$ npm login --registry=https://npm.pkg.github.com
> Username: USERNAME
> Password: TOKEN
```

USERNAME is you github account username. Get the token from your github settings, see ["Managing your personal access tokens."](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens).

```
$ npm i @thalalabs/router-sdk
```
Expand Down
3 changes: 1 addition & 2 deletions packages/thalaswap-router/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@
"dist"
],
"publishConfig": {
"access": "public",
"registry": "https://npm.pkg.github.com"
"access": "public"
},
"repository": {
"type": "git",
Expand Down