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

Update docs #1

Merged
merged 4 commits into from
Sep 2, 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
14 changes: 10 additions & 4 deletions .github/workflows/ci-main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,18 @@ jobs:
uses: oven-sh/setup-bun@v2

- name: Install dependencies
run: bun install
run: bun install --frozen-lockfile

- name: Run CI
run: bun run ci

- name: Publish to NPM package registry
run: npm publish --access=public --tag=latest
- name: Prepare .npmrc for publishing
run: |
echo "@secretkeylabs:registry=https://registry.npmjs.org/" > .npmrc
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PACKAGE_REGISTRY_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_PACKAGE_REGISTRY_TOKEN }}

- name: Publish to NPM package registry
# https://github.com/oven-sh/bun/issues/1976
run: bunx npm@latest publish --access=public --tag=latest
10 changes: 8 additions & 2 deletions .github/workflows/ci-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
uses: oven-sh/setup-bun@v2

- name: Install dependencies
run: bun install
run: bun install --frozen-lockfile

- name: Run CI
run: bun run ci
Expand All @@ -38,9 +38,15 @@ jobs:
SHA: ${{ steps.sha.outputs.SHA }}
CURRENT_VERSION: ${{ steps.current-version.outputs.CURRENT_VERSION }}

- name: Prepare .npmrc for publishing
run: |
echo "@secretkeylabs:registry=https://registry.npmjs.org/" > .npmrc
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc
env:
NPM_TOKEN: ${{ secrets.NPM_PACKAGE_REGISTRY_TOKEN }}

- name: Publish to NPM package registry
# https://github.com/oven-sh/bun/issues/1976
run: bunx npm@latest publish --access=public --tag pr-$PR_NUMBER
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PACKAGE_REGISTRY_TOKEN }}
PR_NUMBER: ${{ github.event.number }}
18 changes: 15 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# pool-tools
# stacks-tools

A collection of methods to help interact with the Stacks API and manage pools.
A collection of methods for calling the Stacks API and managing Stacks pools.

Supports ESM imports only.
## Quickstart

Install dependencies with

```shell
bun install
```

and build the package with

```shell
bun run build
```
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "stacks-tools",
"name": "@secretkeylabs/stacks-tools",
"version": "0.1.0",
"type": "module",
"files": [
Expand All @@ -12,7 +12,7 @@
"format": "prettier --write .",
"check-types": "tsc --noEmit",
"check-exports": "attw --pack . --ignore-rules=cjs-resolves-to-esm",
"ci": "bun run check-format && bun run check-exports && bun run build"
"ci": "bun run build && bun run check-format && bun run check-exports"
},
"devDependencies": {
"@arethetypeswrong/cli": "0.15.4",
Expand Down