Skip to content

Commit

Permalink
refactor: use the API toolkit, upgrade to node 18 (#1743)
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelcr authored Oct 31, 2023
1 parent 1d86e3c commit 74606c7
Show file tree
Hide file tree
Showing 118 changed files with 4,976 additions and 14,503 deletions.
138 changes: 69 additions & 69 deletions .github/workflows/ci.yml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v16
v18
51 changes: 51 additions & 0 deletions .releaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"branches": [
"master",
{
"name": "beta",
"channel": "beta",
"prerelease": true
},
{
"name": "stacks-2.4",
"channel": "stacks-2.4",
"prerelease": true
}
],
"plugins": [
[
"@semantic-release/commit-analyzer",
{
"preset": "conventionalcommits"
}
],
[
"@semantic-release/release-notes-generator",
{
"preset": "conventionalcommits"
}
],
[
"@semantic-release/exec",
{
"execCwd": "client",
"prepareCmd": "npm ci"
}
],
[
"@semantic-release/npm",
{
"pkgRoot": "./docs"
}
],
[
"@semantic-release/npm",
{
"pkgRoot": "./client"
}
],
"@semantic-release/github",
"@semantic-release/changelog",
"@semantic-release/git"
]
}
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
FROM node:16-alpine
FROM node:18-alpine

WORKDIR /app
COPY . .

RUN apk add --no-cache --virtual .build-deps alpine-sdk python3 git openjdk8-jre cmake
RUN echo "GIT_TAG=$(git tag --points-at HEAD)" >> .env
RUN npm config set unsafe-perm true && npm ci && npm run build && npm run build:docs && npm prune --production
RUN npm ci && npm run build && npm run build:docs && npm prune --production
RUN apk del .build-deps

# As no pre-built binaries of duckdb can be found for Alpine (musl based),
Expand Down
3 changes: 1 addition & 2 deletions docker/rosetta.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ ARG ARCHIVE_VERSION=latest

#######################################################################
## Build the stacks-blockchain-api
FROM node:16-buster as stacks-blockchain-api-build
FROM node:18-buster as stacks-blockchain-api-build
ARG STACKS_API_VERSION
ENV STACKS_API_REPO=hirosystems/stacks-blockchain-api
ENV STACKS_API_VERSION=${STACKS_API_VERSION}
Expand All @@ -26,7 +26,6 @@ RUN apt-get update -y \
cmake \
&& git clone -b ${STACKS_API_VERSION} https://github.com/${STACKS_API_REPO} . \
&& echo "GIT_TAG=$(git tag --points-at HEAD)" >> .env \
&& npm config set unsafe-perm true \
&& npm ci \
&& npm run build \
&& npm prune --production
Expand Down
3 changes: 1 addition & 2 deletions docker/standalone-regtest.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# syntax=docker/dockerfile:1

FROM node:16-bullseye as api-builder
FROM node:18-bullseye as api-builder

ARG API_GIT_COMMIT
ARG STACKS_API_VERSION
Expand All @@ -25,7 +25,6 @@ RUN rm ".env" && \
git describe --tags --abbrev=0 || git -c user.name='user' -c user.email='email' tag "${STACKS_API_VERSION:-vNext}" && \
echo "GIT_TAG=$(git tag --points-at HEAD)" >> .env && \
npm config set update-notifier false && \
npm config set unsafe-perm true && \
npm ci --audit=false && \
npm run build && \
npm prune --production
Expand Down
Loading

0 comments on commit 74606c7

Please sign in to comment.