Skip to content

Commit

Permalink
Merge pull request #45 from vansergen/deps
Browse files Browse the repository at this point in the history
Update dependencies
  • Loading branch information
vansergen committed May 17, 2022
2 parents 1698294 + a177a5b commit 15df695
Show file tree
Hide file tree
Showing 21 changed files with 8,750 additions and 13,702 deletions.
1 change: 1 addition & 0 deletions .c8rc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{ "exclude": ["build/test/*"] }
109 changes: 53 additions & 56 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,18 @@ jobs:

strategy:
matrix:
node-version: [14, 15]

container: node:${{ matrix.node-version }}-buster
node-version: [16, 17, 18]

steps:
- uses: actions/checkout@master
- uses: actions/checkout@main
with:
fetch-depth: 0

- uses: actions/setup-node@main
with:
node-version: ${{ matrix.node-version }}
check-latest: true

- name: Node.js version
run: node --version

Expand All @@ -29,102 +32,96 @@ jobs:
- name: Install dependencies
run: npm ci

- name: Tests
run: npm test

- name: Tests:js
run: npm run test:js
- name: Commitlint
run: npm run commitlint:all

- name: Prettier
run: npm run prettier

- name: commitlint
run: npm run commitlint:all

- name: ESLint
run: npm run lint

- name: Coverage
run: npm run coverage:ci

- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}
flag-name: Node.js v${{ matrix.node-version }}
parallel: true

- name: Publish test
run: npm run publish:test

- name: Docs
run: |
rm -rf docs
npm run docs:test
- name: npm vulnerabilities
run: npm audit --production

coverage:
runs-on: ubuntu-latest
needs: [test]

container: node:14
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@master
- name: Coveralls Finished
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}
parallel-finished: true

- name: Node.js version
run: node --version
docs:
runs-on: ubuntu-latest

- name: npm version
run: npm --version
steps:
- uses: actions/checkout@main

- uses: actions/setup-node@main
with:
node-version: 16
check-latest: true

- name: Install dependencies
run: npm ci

- name: Coverage
run: npm run coverage

- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Docs
run: npm run docs:build

release:
needs: [test, coverage]
needs: [test, docs, coverage]

runs-on: ubuntu-latest

container: node:14-buster

steps:
- uses: actions/checkout@master
- uses: actions/checkout@main
with:
fetch-depth: 0

- name: Node.js version
run: node --version

- name: npm version
run: npm --version

- name: git version
run: git --version

- name: gpg version
run: gpg --version
- uses: actions/setup-node@main
with:
node-version: 16
check-latest: true

- name: Install dependencies
run: npm ci

- name: Decrypt PGP key
run: ./.github/scripts/decrypt.sh
env:
PRIVATE_KEY_PASSPHRASE: ${{ secrets.PRIVATE_KEY_PASSPHRASE }}

- name: Setup git
run: ./.github/scripts/git.sh
env:
PGP_KEY_ID: ${{ secrets.PGP_KEY_ID }}

- name: Release
run: npm run release
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
GIT_COMMITTER_EMAIL: ${{ secrets.GIT_COMMITTER_EMAIL }}
GIT_COMMITTER_NAME: ${{ secrets.GIT_COMMITTER_NAME }}
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Cleanup
run: ./.github/scripts/cleanup.sh

env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
GIT_COMMITTER_EMAIL: ${{ secrets.GIT_COMMITTER_EMAIL }}
GIT_COMMITTER_NAME: ${{ secrets.GIT_COMMITTER_NAME }}
NPM_CONFIG_UNSAFE_PERM: true
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
PGP_KEY_ID: ${{ secrets.PGP_KEY_ID }}
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
PRIVATE_KEY_PASSPHRASE: ${{ secrets.PRIVATE_KEY_PASSPHRASE }}
2 changes: 1 addition & 1 deletion .lintstagedrc.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ "*": "npm run prettier:write", "*.{ts,js}": "npm run lint:fix" }
{ "*": "npm run prettier:write", "*.ts": "npm run lint:fix" }
3 changes: 3 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
# Coverage directory used by nyc
coverage

# c8 config - https://github.com/bcoe/c8
.c8rc.json

# GitHub folder
.github/

Expand Down
10 changes: 5 additions & 5 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# nyc test coverage
.nyc_output/

# Coverage directory used by nyc
coverage/
coverage

# nyc test coverage
.nyc_output

# Documentation
docs/
docs
31 changes: 13 additions & 18 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"branches": "master",
"branches": "main",
"preset": "conventionalcommits",
"presetConfig": {
"types": [
Expand All @@ -21,24 +21,19 @@
{ "type": "ci", "section": "Continuous Integration", "hidden": true }
]
},
"releaseRules": [
{ "breaking": true, "release": "major" },
{ "type": "feat", "release": "minor" },
{ "type": "fix", "release": "patch" },
{ "type": "perf", "release": "patch" },
{ "type": "build", "release": "patch" },
{ "type": "initial", "release": "minor" },
{ "type": "dependencies", "release": "patch" },
{ "type": "peerDependencies", "release": "patch" },
{ "type": "metadata", "release": "patch" }
],
"plugins": [
[
"@semantic-release/commit-analyzer",
{
"releaseRules": [
{ "breaking": true, "release": "major" },
{ "type": "feat", "release": "minor" },
{ "type": "fix", "release": "patch" },
{ "type": "perf", "release": "patch" },
{ "type": "build", "release": "patch" },
{ "type": "docs", "scope": "readme", "release": "patch" },
{ "type": "initial", "release": "minor" },
{ "type": "dependencies", "release": "patch" },
{ "type": "peerDependencies", "release": "patch" },
{ "type": "metadata", "release": "patch" }
]
}
],
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
["@semantic-release/changelog", { "changelogTitle": "# Changelog" }],
"@semantic-release/npm",
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,7 @@ Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:

<program> Copyright (C) <year> <name of author>
coinbase-pro-node-api Copyright (C) 2019 Sergey Bakulin
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# coinbase-pro-node-api ![CI Status](https://github.com/vansergen/coinbase-pro/workflows/CI/badge.svg) ![npm](https://img.shields.io/npm/v/coinbase-pro-node-api) [![Coverage Status](https://coveralls.io/repos/github/vansergen/coinbase-pro/badge.svg?branch=master)](https://coveralls.io/github/vansergen/coinbase-pro?branch=master) [![Known Vulnerabilities](https://snyk.io/test/github/vansergen/coinbase-pro/badge.svg)](https://snyk.io/test/github/vansergen/coinbase-pro) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://github.com/prettier/prettier) [![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release) [![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg)](https://conventionalcommits.org) ![NPM license](https://img.shields.io/npm/l/coinbase-pro-node-api) ![node version](https://img.shields.io/node/v/coinbase-pro-node-api) ![npm downloads](https://img.shields.io/npm/dt/coinbase-pro-node-api) ![GitHub top language](https://img.shields.io/github/languages/top/vansergen/coinbase-pro)
# coinbase-pro-node-api ![CI Status](https://github.com/vansergen/coinbase-pro/workflows/CI/badge.svg) ![npm](https://img.shields.io/npm/v/coinbase-pro-node-api) [![Coverage Status](https://coveralls.io/repos/github/vansergen/coinbase-pro/badge.svg?branch=main)](https://coveralls.io/github/vansergen/coinbase-pro?branch=main) [![Known Vulnerabilities](https://snyk.io/test/github/vansergen/coinbase-pro/badge.svg)](https://snyk.io/test/github/vansergen/coinbase-pro) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://github.com/prettier/prettier) [![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release) [![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg)](https://conventionalcommits.org) ![NPM license](https://img.shields.io/npm/l/coinbase-pro-node-api) ![node version](https://img.shields.io/node/v/coinbase-pro-node-api) ![npm downloads](https://img.shields.io/npm/dt/coinbase-pro-node-api) ![GitHub top language](https://img.shields.io/github/languages/top/vansergen/coinbase-pro)

Node.js library for [Coinbase Pro](https://pro.coinbase.com/)

Expand Down
8 changes: 4 additions & 4 deletions index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export * from "./src/public";
export * from "./src/signer";
export * from "./src/auth";
export * from "./src/websocket";
export * from "./src/public.js";
export * from "./src/signer.js";
export * from "./src/auth.js";
export * from "./src/websocket.js";
Loading

0 comments on commit 15df695

Please sign in to comment.