Skip to content

Commit

Permalink
fix: update package vesion and readme, remove release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Ceban Mihail committed Feb 14, 2024
1 parent 7b8e55f commit 9fcd68d
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 7 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/release.yml → .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Release
name: Build
on:
push:
branches:
Expand Down Expand Up @@ -32,10 +32,10 @@ jobs:
run: npm run build
- name: Test
run: npm test
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release
# - name: Release
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
# run: npx semantic-release
- name: Upload Code Coverage
uses: codecov/codecov-action@v3.1.0
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,20 @@ const addr = await xypeResolver.lookupAddress(
npm run test
```

## Publish package

There are two supported versions of this package depending on version of ethers.js (v5 and v6):

- Publish ethers-v5 version `xype-resolver@ethers-v5`:
```shell
npm publish --tag ethers-v5
```

- Publish ethers-v6 version `xype-resolver@latest`:
```shell
npm publish --tag latest
```

[build-img]: https://github.com/Syndika-Corp/xype-resolver/actions/workflows/release.yml/badge.svg
[build-url]: https://github.com/Syndika-Corp/xype-resolver/actions/workflows/release.yml
[downloads-img]: https://img.shields.io/npm/dt/xype-resolver
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "xype-resolver",
"version": "1.2.0",
"version": "1.5.0",
"description": "The Xype Name Resolver Library",
"main": "./lib/index.js",
"types": "./lib/index.d.ts",
Expand Down

0 comments on commit 9fcd68d

Please sign in to comment.