From 7f9f33b7a6e64a76e4bdb35fe02ce426e6306fd5 Mon Sep 17 00:00:00 2001 From: whonion Date: Mon, 24 Jun 2024 09:47:19 +0800 Subject: [PATCH] remove fsevent | add dependabot.yml --- .github/dependabot.yml | 23 +++++++++++++++ .github/workflows/build.yml | 28 +++++++++++++++++++ .../workflows/npm-publish-github-packages.yml | 4 +-- README.md | 2 +- package.json | 1 - 5 files changed, 54 insertions(+), 4 deletions(-) create mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/build.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..7684122 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,23 @@ +# Basic set up for three package managers + +version: 2 +updates: + + # Maintain dependencies for GitHub Actions + - package-ecosystem: "github-actions" + # Workflow files stored in the default location of `.github/workflows`. (You don't need to specify `/.github/workflows` for `directory`. You can use `directory: "/"`.) + directory: "/" + schedule: + interval: "weekly" + + # Maintain dependencies for npm + - package-ecosystem: "npm" + directory: "/" + schedule: + interval: "weekly" + + # Maintain dependencies for Composer + - package-ecosystem: "composer" + directory: "/" + schedule: + interval: "weekly" diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..e3c9dbf --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,28 @@ +name: TypeScript Build + +on: + push: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout Repository + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: 20 + + - name: Install Dependencies + run: npm i + + - name: Set Global TypeScript + run: npm i -g typescript + + - name: Build TypeScript + run: tsc --project tsconfig.json diff --git a/.github/workflows/npm-publish-github-packages.yml b/.github/workflows/npm-publish-github-packages.yml index 1b69117..4c48713 100644 --- a/.github/workflows/npm-publish-github-packages.yml +++ b/.github/workflows/npm-publish-github-packages.yml @@ -5,8 +5,8 @@ jobs: publish-npm: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: node-version: lts/* registry-url: https://registry.npmjs.org/ diff --git a/README.md b/README.md index c56a6c9..f30a707 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # Trading Open API - JS SDK - +![Package build](https://github.com/whonion/invest-js/actions/workflows/build.yml/badge.svg)
SDK для работы с OpenAPI Тинькофф Инвестиции, который можно использовать для создания торговых роботов. `npm i @tinkoff/invest-js --save` diff --git a/package.json b/package.json index 6aa97f6..4490fd3 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,6 @@ "@grpc/grpc-js": "^1.5.0", "@grpc/proto-loader": "^0.6.9", "grpc-tools": "^1.11.2", - "fsevents": "^2.0.7", "prettier": "^2.0.5", "tslib": "^2.0.0", "typescript": "^4.3.4"