Skip to content

Commit

Permalink
Create basic ci (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
mandar1jn authored Nov 1, 2023
1 parent 43960c7 commit 1b4fcdd
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 7 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Build

on:
workflow_dispatch:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup PNPM
uses: pnpm/action-setup@v2

- name: Setup node@20
uses: actions/setup-node@v3
with:
node-version: 20
cache: "pnpm"

- name: Install dependencies
run: pnpm install

- name: Build
run: pnpm run build
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"main": "lib/app.js",
"type": "module",
"scripts": {
"build": "tsc",
"build": "tsc --build --verbose",
"start": "node .",
"dev": "tsc && node .",
"preinstall": "npx only-allow pnpm"
Expand All @@ -27,7 +27,7 @@
"devDependencies": {
"@types/node": "^18.17.18",
"@types/node-schedule": "^2.1.0",
"typescript": "^5.1.0"
"typescript": "^5.2.2"
},
"license": "MIT"
}
8 changes: 4 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"forceConsistentCasingInFileNames": true,
"moduleResolution": "node",
"outDir": "lib",
"sourceMap": true
"sourceMap": true,
"rootDir": "./src"
},
"include": ["src/**/*"],
}

0 comments on commit 1b4fcdd

Please sign in to comment.