Skip to content

Commit

Permalink
change back to npm registry (#143)
Browse files Browse the repository at this point in the history
* npm registry

* fix readme
  • Loading branch information
SamuelQZQ authored Jun 4, 2024
1 parent 1ee99e8 commit 55876ef
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 31 deletions.
9 changes: 0 additions & 9 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,6 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: 20.x

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

- run: yarn install --frozen-lockfile
- run: yarn test
- name: Create Release Pull Request or Publish
Expand Down
17 changes: 0 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,23 +55,6 @@ When you input `client.useABI(COIN_ABI).view.` into your IDE, the auto-completio

### Installation

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).

```shell
npm i @thalalabs/surf @aptos-labs/ts-sdk
```
Expand Down
6 changes: 1 addition & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@thalalabs/surf",
"version": "1.6.0",
"version": "1.5.1",
"description": "TypeScript Interfaces & React Hooks for interacting with Aptos Smart Contracts with type safety.",
"main": "./build/cjs/index.js",
"module": "./build/esm/index.js",
Expand Down Expand Up @@ -95,10 +95,6 @@
"blockchain",
"aptos"
],
"publishConfig": {
"access": "public",
"registry": "https://npm.pkg.github.com"
},
"repository": {
"type": "git",
"url": "git+https://github.com/ThalaLabs/surf"
Expand Down

0 comments on commit 55876ef

Please sign in to comment.