Skip to content
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: 11 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
- master
- develop
- beta
- next
tags-ignore:
- '**'
paths-ignore:
Expand Down Expand Up @@ -146,6 +147,16 @@ jobs:
fetch-depth: 0
persist-credentials: false

- name: Use Node.js
uses: actions/setup-node@v6
with:
node-version-file: .nvmrc

- name: Upgrade to latest npm
run: |
npm install -g npm@latest
npm -v

- name: Get bot user ID
id: bot-user-id
run: |
Expand All @@ -166,7 +177,6 @@ jobs:
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
env:
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
SEMANTIC_RELEASE_PACKAGE: ${{ github.event.repository.name }}
GIT_AUTHOR_EMAIL: "${{ steps.bot-user-id.outputs.user-id }}+${{ steps.generate_token.outputs.app-slug }}[bot]@users.noreply.github.com"
GIT_COMMITTER_EMAIL: "${{ steps.bot-user-id.outputs.user-id }}+${{ steps.generate_token.outputs.app-slug }}[bot]@users.noreply.github.com"
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20
22
81 changes: 50 additions & 31 deletions .releaserc
Original file line number Diff line number Diff line change
@@ -1,35 +1,54 @@
{
"plugins": [
[
"@semantic-release/commit-analyzer",
{
"preset": "conventionalcommits"
}
],
[
"@semantic-release/release-notes-generator",
{
"preset": "conventionalcommits"
}
],
[
"@semantic-release/npm",
{
"pkgRoot": "./client",
"npmPublish": true
}
],
"@semantic-release/github",
"@semantic-release/changelog",
[
"@semantic-release/git",
{
"assets": [
"CHANGELOG.md",
"client/package.json",
"client/package-lock.json"
]
}
"branches": [
"master",
{
"name": "beta",
"channel": "beta",
"prerelease": true
},
{
"name": "next",
"channel": "next",
"prerelease": true
}
],
"plugins": [
[
"@semantic-release/commit-analyzer",
{
"preset": "conventionalcommits"
}
],
[
"@semantic-release/release-notes-generator",
{
"preset": "conventionalcommits"
}
],
[
"@semantic-release/npm",
{
"pkgRoot": "./client",
"npmPublish": true
}
],
[
"@semantic-release/github",
{
"successComment": false,
"draftRelease": true
}
],
"@semantic-release/changelog",
[
"@semantic-release/git",
{
"assets": [
"CHANGELOG.md",
"client/package.json",
"client/package-lock.json"
]
}
]
]
}
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:20-alpine
FROM node:22-alpine

WORKDIR /app
COPY . .
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ database, the Token Metadata Service local database, and the Stacks node RPC int
[`env.ts`](https://github.com/hirosystems/token-metadata-api/blob/develop/src/env.ts) for all
available configuration options.

Build the app (NodeJS v18+ is required)
Build the app (NodeJS v22+ is required)
```
npm install
npm run build
Expand Down
23 changes: 14 additions & 9 deletions client/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
"@hirosystems/token-metadata-api-client"
],
"license": "GPL-3.0",
"engines": {
"node": ">=22"
},
"main": "./lib/index.js",
"typings": "./lib/index.d.ts",
"unpkg": "lib/index.umd.js",
Expand All @@ -23,7 +26,7 @@
"build:browser": "microbundle -i src/index.ts -o lib/index.umd.js --no-pkg-main -f umd --external none --globals none --no-compress --tsconfig tsconfig.browser.json --name TokenMetadataApiClient"
},
"devDependencies": {
"@types/node": "^20.16.11",
"@types/node": "^22.0.0",
"microbundle": "^0.15.1",
"rimraf": "^6.0.1",
"typescript": "^5.6.3"
Expand Down
Loading