From 6eb167e403dc58160d969c5cc9f665b5d812ce22 Mon Sep 17 00:00:00 2001 From: Makis <77842228+80-svg@users.noreply.github.com> Date: Wed, 14 Feb 2024 17:21:21 +0200 Subject: [PATCH] Create workflows --- .github/workflows | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows diff --git a/.github/workflows b/.github/workflows new file mode 100644 index 0000000..bd576a3 --- /dev/null +++ b/.github/workflows @@ -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 "action@github.com" + git config --local user.name "GitHub Action" + git add . + git commit -m "Compile TypeScript to JavaScript" + git push