Skip to content

Commit

Permalink
Add TypeScript compilation workflow and update package.json scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
carolinaisslaying committed Jan 22, 2025
1 parent b1364be commit 0696579
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
32 changes: 32 additions & 0 deletions .github/workflows/compile.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Compile TypeScript

on:
push:
branches:
- main
- 'feature/*'
pull_request:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '22'

- name: Install pnpm
run: npm install -g pnpm

- name: Install dependencies
run: pnpm install

- name: Compile TypeScript
run: pnpm run build
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "A Node.js API wrapper for GeoNet — Aotearoa's geological hazard monitoring system.",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"build": "tsc"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit 0696579

Please sign in to comment.