Skip to content

Commit

Permalink
trying out npm releases with gh actions
Browse files Browse the repository at this point in the history
  • Loading branch information
paigen11 committed Jan 12, 2023
1 parent 4efacbc commit dce1767
Show file tree
Hide file tree
Showing 86 changed files with 124 additions and 171 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/publish-npm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Publish notehub-js to npm

on:
# todo include workflow run of tests?
release:
types: [created]

jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./src
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Use Node.js 16
uses: actions/setup-node@v3
with:
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'

- name: Install dependencies
run: npm ci

- name: Publish to npm
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
3 changes: 0 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,10 @@ on:

jobs:
build:

runs-on: ubuntu-latest

defaults:
run:
working-directory: ./src

strategy:
matrix:
node-version: [10.x, 12.x, 14.x, 15.x]
Expand Down
2 changes: 2 additions & 0 deletions config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"projectName": "notehub-js",
"licenseName": "MIT",
"npmRepository": "https://www.npmjs.com/package/notehub-js",
"projectVersion": "1.0.3",
"sourceFolder": "src",
"usePromises": true
}
11 changes: 7 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"name": "notehub-js",
"version": "1.0.0",
"description": "JavaScript library for accessing the Blues Wireless Notehub API endpoints",
"main": "./src/dist/index.js",
"scripts": {
Expand All @@ -10,13 +9,17 @@
},
"repository": {
"type": "git",
"url": "git+https://github.com/blues/notehub-js.git"
"url": "https://github.com/blues/notehub-js.git"
},
"keywords": ["blues wireless", "notehub", "api"],
"keywords": [
"blues wireless",
"notehub",
"api"
],
"author": "Paige Niedringhaus",
"license": "MIT",
"bugs": {
"url": "https://github.com/blues/notehub-js/issues"
},
"homepage": "https://github.com/blues/notehub-js#readme"
}
}
80 changes: 0 additions & 80 deletions src/.openapi-generator/FILES
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
.babelrc
.gitignore
.openapi-generator-ignore
.travis.yml
README.md
docs/AuthorizationApi.md
Expand Down Expand Up @@ -166,82 +165,3 @@ src/model/TowerLocation.js
src/model/Twilio.js
src/model/UpdateFleetRequest.js
src/model/UserDbRoute.js
test/api/AuthorizationApi.spec.js
test/api/BillingAccountApi.spec.js
test/api/DeviceApi.spec.js
test/api/DevicesApi.spec.js
test/api/EnvironmentVariablesApi.spec.js
test/api/EventApi.spec.js
test/api/FilesApi.spec.js
test/api/FleetApi.spec.js
test/api/NotesApi.spec.js
test/api/ProductApi.spec.js
test/api/ProjectApi.spec.js
test/api/RouteApi.spec.js
test/model/Aws.spec.js
test/model/Azure.spec.js
test/model/BillingAccount.spec.js
test/model/BillingAccountRole.spec.js
test/model/Body.spec.js
test/model/Contact.spec.js
test/model/CreateFleetRequest.spec.js
test/model/CreateProductRequest.spec.js
test/model/CreateProjectRequest.spec.js
test/model/DFUEnv.spec.js
test/model/DFUState.spec.js
test/model/DeleteDeviceFleetsRequest.spec.js
test/model/Device.spec.js
test/model/DeviceSession.spec.js
test/model/DeviceTowerInfo.spec.js
test/model/DeviceUsage.spec.js
test/model/EnvironmentVariables.spec.js
test/model/Error.spec.js
test/model/Event.spec.js
test/model/Fleet.spec.js
test/model/GetBillingAccounts200Response.spec.js
test/model/GetDeviceEnvironmentVariables200Response.spec.js
test/model/GetDeviceHealthLog200Response.spec.js
test/model/GetDeviceHealthLog200ResponseHealthLogInner.spec.js
test/model/GetDeviceLatest200Response.spec.js
test/model/GetDevicePublicKey200Response.spec.js
test/model/GetDeviceSessions200Response.spec.js
test/model/GetProjectDevicePublicKeys200Response.spec.js
test/model/GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.spec.js
test/model/GetProjectDevices200Response.spec.js
test/model/GetProjectEvents200Response.spec.js
test/model/GetProjectEventsByCursor200Response.spec.js
test/model/GetProjectFleets200Response.spec.js
test/model/GetProjectMembers200Response.spec.js
test/model/GetProjectProducts200Response.spec.js
test/model/GetProjects200Response.spec.js
test/model/Google.spec.js
test/model/HandleNoteChanges200Response.spec.js
test/model/HandleNoteGet200Response.spec.js
test/model/HandleNoteSignal200Response.spec.js
test/model/HandleNotefileChanges200Response.spec.js
test/model/HandleNotefileChangesPending200Response.spec.js
test/model/HandleNotefileDeleteRequest.spec.js
test/model/Http.spec.js
test/model/HttpFilter.spec.js
test/model/HttpTransform.spec.js
test/model/Location.spec.js
test/model/Login200Response.spec.js
test/model/LoginRequest.spec.js
test/model/Mqtt.spec.js
test/model/Note.spec.js
test/model/Product.spec.js
test/model/Project.spec.js
test/model/ProjectMember.spec.js
test/model/Proxy.spec.js
test/model/PutDeviceFleetsRequest.spec.js
test/model/Radresponder.spec.js
test/model/Role.spec.js
test/model/Route.spec.js
test/model/RouteSchema.spec.js
test/model/Snowflake.spec.js
test/model/SnowflakeTransform.spec.js
test/model/Thingworx.spec.js
test/model/TowerLocation.spec.js
test/model/Twilio.spec.js
test/model/UpdateFleetRequest.spec.js
test/model/UserDbRoute.spec.js
4 changes: 1 addition & 3 deletions src/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ The OpenAPI definition for the Notehub.io API.
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: 1.0.0
- Package version: 1.0.0
- Package version: 1.0.3
- Build package: org.openapitools.codegen.languages.JavascriptClientCodegen
For more information, please visit [https://dev.blues.io/support/](https://dev.blues.io/support/)

Expand Down Expand Up @@ -116,8 +116,6 @@ api.login(loginRequest).then(function(data) {

## Documentation for API Endpoints

[**Full docs and code examples for each endpoint**](https://github.com/blues/notehub-js/tree/main/src)

All URIs are relative to *https://api.notefile.net*

Class | Method | HTTP request | Description
Expand Down
5 changes: 4 additions & 1 deletion src/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "notehub-js",
"version": "1.0.2",
"version": "1.0.3",
"description": "The OpenAPI definition for the Notehub.io API. ",
"license": "MIT",
"main": "dist/index.js",
Expand All @@ -12,6 +12,9 @@
"browser": {
"fs": false
},
"publishConfig":{
"registry":"https://www.npmjs.com/package/notehub-js"
},
"dependencies": {
"@babel/cli": "^7.0.0",
"superagent": "^5.3.0"
Expand Down
4 changes: 2 additions & 2 deletions src/src/ApiClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import querystring from "querystring";

/**
* @module ApiClient
* @version 1.0.0
* @version 1.0.3
*/

/**
Expand Down Expand Up @@ -56,7 +56,7 @@ class ApiClient {
* @default {}
*/
this.defaultHeaders = {
'User-Agent': 'OpenAPI-Generator/1.0.0/Javascript'
'User-Agent': 'OpenAPI-Generator/1.0.3/Javascript'
};

/**
Expand Down
2 changes: 1 addition & 1 deletion src/src/api/AuthorizationApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import LoginRequest from '../model/LoginRequest';
/**
* Authorization service.
* @module api/AuthorizationApi
* @version 1.0.0
* @version 1.0.3
*/
export default class AuthorizationApi {

Expand Down
2 changes: 1 addition & 1 deletion src/src/api/BillingAccountApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import GetBillingAccounts200Response from '../model/GetBillingAccounts200Respons
/**
* BillingAccount service.
* @module api/BillingAccountApi
* @version 1.0.0
* @version 1.0.3
*/
export default class BillingAccountApi {

Expand Down
2 changes: 1 addition & 1 deletion src/src/api/DeviceApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import PutDeviceFleetsRequest from '../model/PutDeviceFleetsRequest';
/**
* Device service.
* @module api/DeviceApi
* @version 1.0.0
* @version 1.0.3
*/
export default class DeviceApi {

Expand Down
2 changes: 1 addition & 1 deletion src/src/api/DevicesApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import GetProjectDevices200Response from '../model/GetProjectDevices200Response'
/**
* Devices service.
* @module api/DevicesApi
* @version 1.0.0
* @version 1.0.3
*/
export default class DevicesApi {

Expand Down
2 changes: 1 addition & 1 deletion src/src/api/EnvironmentVariablesApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import GetDeviceEnvironmentVariables200Response from '../model/GetDeviceEnvironm
/**
* EnvironmentVariables service.
* @module api/EnvironmentVariablesApi
* @version 1.0.0
* @version 1.0.3
*/
export default class EnvironmentVariablesApi {

Expand Down
2 changes: 1 addition & 1 deletion src/src/api/EventApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import GetProjectEventsByCursor200Response from '../model/GetProjectEventsByCurs
/**
* Event service.
* @module api/EventApi
* @version 1.0.0
* @version 1.0.3
*/
export default class EventApi {

Expand Down
2 changes: 1 addition & 1 deletion src/src/api/FilesApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import HandleNotefileDeleteRequest from '../model/HandleNotefileDeleteRequest';
/**
* Files service.
* @module api/FilesApi
* @version 1.0.0
* @version 1.0.3
*/
export default class FilesApi {

Expand Down
2 changes: 1 addition & 1 deletion src/src/api/FleetApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import UpdateFleetRequest from '../model/UpdateFleetRequest';
/**
* Fleet service.
* @module api/FleetApi
* @version 1.0.0
* @version 1.0.3
*/
export default class FleetApi {

Expand Down
2 changes: 1 addition & 1 deletion src/src/api/NotesApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import Note from '../model/Note';
/**
* Notes service.
* @module api/NotesApi
* @version 1.0.0
* @version 1.0.3
*/
export default class NotesApi {

Expand Down
2 changes: 1 addition & 1 deletion src/src/api/ProductApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import Project from '../model/Project';
/**
* Product service.
* @module api/ProductApi
* @version 1.0.0
* @version 1.0.3
*/
export default class ProductApi {

Expand Down
2 changes: 1 addition & 1 deletion src/src/api/ProjectApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import Project from '../model/Project';
/**
* Project service.
* @module api/ProjectApi
* @version 1.0.0
* @version 1.0.3
*/
export default class ProjectApi {

Expand Down
2 changes: 1 addition & 1 deletion src/src/api/RouteApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import UserDbRoute from '../model/UserDbRoute';
/**
* Route service.
* @module api/RouteApi
* @version 1.0.0
* @version 1.0.3
*/
export default class RouteApi {

Expand Down
2 changes: 1 addition & 1 deletion src/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ import RouteApi from './api/RouteApi';
* </pre>
* </p>
* @module index
* @version 1.0.0
* @version 1.0.3
*/
export {
/**
Expand Down
2 changes: 1 addition & 1 deletion src/src/model/Aws.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import HttpTransform from './HttpTransform';
/**
* The Aws model module.
* @module model/Aws
* @version 1.0.0
* @version 1.0.3
*/
class Aws {
/**
Expand Down
2 changes: 1 addition & 1 deletion src/src/model/Azure.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import HttpTransform from './HttpTransform';
/**
* The Azure model module.
* @module model/Azure
* @version 1.0.0
* @version 1.0.3
*/
class Azure {
/**
Expand Down
2 changes: 1 addition & 1 deletion src/src/model/BillingAccount.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import BillingAccountRole from './BillingAccountRole';
/**
* The BillingAccount model module.
* @module model/BillingAccount
* @version 1.0.0
* @version 1.0.3
*/
class BillingAccount {
/**
Expand Down
2 changes: 1 addition & 1 deletion src/src/model/Body.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient';
/**
* The Body model module.
* @module model/Body
* @version 1.0.0
* @version 1.0.3
*/
class Body {
/**
Expand Down
2 changes: 1 addition & 1 deletion src/src/model/Contact.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient';
/**
* The Contact model module.
* @module model/Contact
* @version 1.0.0
* @version 1.0.3
*/
class Contact {
/**
Expand Down
2 changes: 1 addition & 1 deletion src/src/model/CreateFleetRequest.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient';
/**
* The CreateFleetRequest model module.
* @module model/CreateFleetRequest
* @version 1.0.0
* @version 1.0.3
*/
class CreateFleetRequest {
/**
Expand Down
Loading

0 comments on commit dce1767

Please sign in to comment.