Skip to content
Merged
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
33 changes: 33 additions & 0 deletions .github/workflows/build-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Build and Test Node SDK

on:
pull_request:
branches:
- main
types: ["opened", "synchronize", "reopened"]
jobs:
build-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4

- name: Enable corepack
run: corepack enable pnpm

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Run lint
run: pnpm run check:lint

- name: Run format
run: pnpm run check:format

- name: Run build
run: pnpm run build

- name: Run tests
run: pnpm run test:e2e
22 changes: 14 additions & 8 deletions .github/workflows/publish-node-sdk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,23 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "20"
registry-url: "https://registry.npmjs.org"
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4

- name: Enable corepack
run: corepack enable pnpm

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Install dependencies and build
run: npm ci
- name: Run Build
run: pnpm build

- name: Publish to npm
run: npm publish --access public
run: pnpm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

Expand Down
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,9 @@ wwwroot/*.js
node_modules
typings
dist
.openapi-generator
.openapi-generator-ignore
.env
.env.test
env
.DS_Store
1 change: 0 additions & 1 deletion .npmignore

This file was deleted.

23 changes: 0 additions & 23 deletions .openapi-generator-ignore

This file was deleted.

138 changes: 0 additions & 138 deletions .openapi-generator/FILES

This file was deleted.

1 change: 0 additions & 1 deletion .openapi-generator/VERSION

This file was deleted.

4 changes: 4 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
out/
dist/
build/
node_modules/
5 changes: 5 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"printWidth": 120,
"tabWidth": 2,
"trailingComma": "es5"
}
Loading
Loading