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
49 changes: 49 additions & 0 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# CI/CD Release Workflow
name: nodejs

on:
push:

env:
COMMIT_SHA: ${{ github.event.pull_request.head.sha }}
PULL_NUMBER: ${{ github.event.pull_request.number }}
RUN_ID: ${{ github.run_id }}
FORCE_COLOR: 2

jobs:
pipeline:
name: Node ${{ matrix.node-version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
node-version: ['16.x']
os: ['ubuntu-latest']

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"

- uses: actions/cache@v3
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-

- name: Install project
run: yarn --prefer-offline
id: install

- name: Build project
run: yarn run build
id: production
2 changes: 0 additions & 2 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ name: pipeline

on:
pull_request:
branches:
- 'trunk'
tags-ignore:
- '*'
push:
Expand Down
25 changes: 19 additions & 6 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,36 @@
"compilerOptions": {
"allowSyntheticDefaultImports": false,
"esModuleInterop": false,
"forceConsistentCasingInFileNames": true,
"noFallthroughCasesInSwitch": true,
"removeComments": true,
"incremental": true,
"tsBuildInfoFile": "./",
"preserveValueImports": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"allowUnreachableCode": false,
"strictFunctionTypes": true,
"strictPropertyInitialization": true,
"strictNullChecks": true,
"strictFunctionTypes": true,
"isolatedModules": true,
"declaration": true,
"sourceMap": false,
"module": "ES2020",
"moduleResolution": "node",
"target": "ESNext",
"rootDir": "src",
"outDir": "dist",
"types" : ["@types/node/events"]
"rootDir": "./src",
"outDir": "./dist",
"types": [
"@types/node/events"
]
},
"include": [
"src"
"src/**/*.ts"
],
"exclude": ["**/node_modules", "**/.*/"],
"exclude": [
"**/node_modules",
"**/.*/",
"src/**/*.test.ts"
]
}