Skip to content
Open
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
3 changes: 0 additions & 3 deletions .eslintignore

This file was deleted.

40 changes: 0 additions & 40 deletions .eslintrc.json

This file was deleted.

100 changes: 45 additions & 55 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages

name: CI

on:
Expand All @@ -18,72 +15,65 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- uses: actions/setup-node@v3
with:
node-version: 16
cache: 'yarn'


- run: yarn install
- run: yarn lint
- name: test
run: yarn test
continue-on-error: true
- run: yarn build
# - uses: romeovs/lcov-reporter-action@v0.2.16
# if: github.event_name == 'pull_request'
# with:
# github-token: ${{ secrets.GITHUB_TOKEN }}
# lcov-file: ./coverage/lcov.info
- uses: codecov/codecov-action@v1
node-version: 18
cache: 'pnpm'

- uses: pnpm/action-setup@v2
with:
token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos
#files: ./coverage1.xml,./coverage2.xml # optional
flags: unittests # optional
name: codecov-umbrella # optional
fail_ci_if_error: true # optional (default = false)
verbose: true # optional (default = false)
version: 9.5.0

- run: pnpm install

- name: Run Tests
run: pnpm test
continue-on-error: true

- run: pnpm build

publish-npm:
if: github.ref == 'refs/heads/main'
needs:
- build
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
needs: build
runs-on: ubuntu-latest
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
steps:
- uses: actions/checkout@v3

- uses: actions/setup-node@v3
with:
cache: 'yarn'
node-version: 16
registry-url: https://registry.npmjs.org/
- run: |
yarn install
yarn doc-gen
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
- name: Publish NPM
node-version: 18
cache: 'pnpm'
registry-url: 'https://registry.npmjs.org/'

- uses: pnpm/action-setup@v2
with:
version: 9.5.0

- run: pnpm install

- name: Configure Git for CI
run: |
git config --global user.email "ci@githubuser.com"
git config --global user.name "Coingecko API CI"
yarn release
git push --follow-tags origin main && npm run build && npm publish

- name: Generate Docs
run: pnpm doc-gen

- name: Bump version and tag release
run: pnpm release

- name: Push tags and updated changelog
run: git push --follow-tags origin main

- name: Build and Publish to NPM
run: |
pnpm build
pnpm publish --access public

- uses: JamesIves/github-pages-deploy-action@4.1.1
with:
branch: gh-pages # The branch the action should deploy to.
folder: docs # The folder the action should deploy.
# publish-gpr:
# needs: build
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - uses: actions/setup-node@v2
# with:
# node-version: 14
# registry-url: https://npm.pkg.github.com/
# - run: yarn install
# - run: yarn publish
# env:
# NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
branch: gh-pages
folder: docs
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -107,4 +107,8 @@ dist/
docs/

package-lock.json
.yarn/cache
.yarn/cache


.pnpm-store/
.pnpm-debug.log
1 change: 0 additions & 1 deletion .husky/.gitignore

This file was deleted.

4 changes: 0 additions & 4 deletions .husky/commit-msg

This file was deleted.

4 changes: 0 additions & 4 deletions .husky/pre-commit

This file was deleted.

2 changes: 2 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
package-lock=false
use-workspaces=true
Binary file removed .yarn/install-state.gz
Binary file not shown.
541 changes: 0 additions & 541 deletions .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs

This file was deleted.

801 changes: 0 additions & 801 deletions .yarn/releases/yarn-3.2.4.cjs

This file was deleted.

7 changes: 0 additions & 7 deletions .yarnrc.yml

This file was deleted.

1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
>This is a fork of coingecko-api-v3 by Truong Nguyen. With plans to support further development to the client.
# coingecko-api-v3

[![CI](https://github.com/samuraitruong/coingecko-api-v3/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/samuraitruong/coingecko-api-v3/actions/workflows/ci.yml) [![codecov](https://codecov.io/gh/samuraitruong/coingecko-api-v3/branch/main/graph/badge.svg?token=A7P9GCFGN2)](https://codecov.io/gh/samuraitruong/coingecko-api-v3) [![version](https://badgen.net/npm/v/coingecko-api-v3)](https://badgen.net/npm/v/coingecko-api-v3)
Expand Down
Loading