Skip to content

Commit

Permalink
Create workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
80-svg authored Feb 14, 2024
1 parent 85ae08e commit 6eb167e
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: TypeScript Build

on:
push:
branches:
- main # Change this to match your main branch name

jobs:
build:
runs-on: ubuntu-latest

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

- name: Install Node.js
uses: actions/setup-node@v2
with:
node-version: '14'

- name: Install dependencies
run: npm install

- name: Build TypeScript
run: npm run build # Change this if you have a different build script

- name: Commit compiled JavaScript files
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add .
git commit -m "Compile TypeScript to JavaScript"
git push

0 comments on commit 6eb167e

Please sign in to comment.