Skip to content

Commit

Permalink
Update substreams-sink
Browse files Browse the repository at this point in the history
  • Loading branch information
DenisCarriere committed Nov 25, 2023
1 parent 522ef3d commit ed9c201
Show file tree
Hide file tree
Showing 4 changed files with 76 additions and 25 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/npm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: NPM Registry
on:
release:
types: [ published ]

jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18.x'
cache: 'npm'
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
12 changes: 9 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
FROM oven/bun
FROM node:alpine

EXPOSE 9102

COPY package*.json ./
RUN npm ci
COPY . .
RUN bun install
ENTRYPOINT [ "bun", "./bin/cli.ts", "run" ]
RUN npm run build

ENTRYPOINT ["npm", "start"]
49 changes: 37 additions & 12 deletions package-lock.json

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

21 changes: 11 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,27 +1,28 @@
{
"private": true,
"version": "0.6.0",
"version": "0.6.1",
"name": "substreams-sink-webhook",
"description": "Substreams Sink Webhook",
"type": "module",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"bin": {
"substreams-sink-webhook": "dist/bin/cli.js"
},
"author": {
"name": "Denis",
"email": "denis@pinax.network"
},
"scripts": {
"start": "bun bin/cli.ts run",
"dev": "bun --watch bin/cli.ts run",
"pretest": "bunx tsc --noEmit",
"server": "bun ./examples/node/http.ts 3000",
"start": "tsc && node ./dist/bin/cli.js run",
"pretest": "tsc --noEmit",
"test": "bun test",
"bench": "bun ./src/*.bench.ts",
"prepublishOnly": "tsc",
"build": "bun build --compile ./index.ts --outfile substreams-sink-webhook",
"format": "biome format --write . && biome check --apply .",
"lint": "biome check ."
"bench": "bun ./src/*.bench.ts"
},
"dependencies": {
"p-queue": "latest",
"substreams-sink": "^0.13.0",
"substreams-sink": "^0.13.3",
"tweetnacl": "latest"
},
"devDependencies": {
Expand Down

0 comments on commit ed9c201

Please sign in to comment.