Skip to content

Commit

Permalink
修改 版本更新至 4.15.4
Browse files Browse the repository at this point in the history
  • Loading branch information
finian committed Apr 20, 2021
1 parent 762cfef commit 5a3eae2
Show file tree
Hide file tree
Showing 18 changed files with 656 additions and 1,151 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# 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: Node.js Package

on:
release:
types: [created]

jobs:
# build:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - uses: actions/setup-node@v1
# with:
# node-version: 12
# - run: npm ci
# - run: npm test

publish-npm:
# needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://registry.npmjs.org/
# - run: npm ci
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

publish-gpr:
# needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://npm.pkg.github.com/
# - run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Build Status](https://travis-ci.org/Baidu-AIP/nodejs-sdk.svg?branch=master)](https://travis-ci.org/Baidu-AIP/nodejs-sdk)
[![Build Status](https://travis-ci.org/meteorasd555/learn.svg?branch=master)](https://travis-ci.org/meteorasd555/learn)
[![npm](https://img.shields.io/npm/v/baidu-aip-sdk.svg)](https://www.npmjs.com/package/baidu-aip-sdk)

# 安装百度AI开放平台 Node.js SDK
Expand Down
11 changes: 5 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "baidu-aip-sdk",
"version": "2.4.6",
"version": "4.15.4",
"description": "百度AI开放平台Nodejs SDK, 文档以及详情请访问官网: https://ai.baidu.com",
"main": "src/index.js",
"scripts": {
Expand All @@ -13,11 +13,10 @@
"url": "https://github.com/Baidu-AIP/nodejs-sdk.git"
},
"dependencies": {
"debug": "^2.6.0",
"iconv-lite": "^0.4.15",
"keep-alive-agent": "0.0.1",
"request": "^2.79.0",
"underscore": "^1.8.3"
"debug": "^2.6.9",
"iconv-lite": "^0.4.24",
"request": "^2.88.2",
"underscore": "^1.12.0"
},
"optionalDependencies": {
"should": "^13.2.0",
Expand Down
202 changes: 0 additions & 202 deletions src/AipBodyAnalysis.js

This file was deleted.

Loading

0 comments on commit 5a3eae2

Please sign in to comment.