From 1a03e1432c7295e021fbbe1942e394432db8c199 Mon Sep 17 00:00:00 2001 From: Manel Eljishi Date: Wed, 11 Sep 2024 08:31:05 +0200 Subject: [PATCH] Add pipeline --- .github/workflows/build-plugin.yaml | 31 +++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/build-plugin.yaml diff --git a/.github/workflows/build-plugin.yaml b/.github/workflows/build-plugin.yaml new file mode 100644 index 0000000..1f03e25 --- /dev/null +++ b/.github/workflows/build-plugin.yaml @@ -0,0 +1,31 @@ +on: + push: + branches: + - master + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: Use Node.js 18.20.4 + uses: actions/setup-node@v3 + with: + node-version: 18.20.4 + + - name: Install dependencies + run: npm ci + + - name: Build TypeScript + run: | + cd plugin + npx tsc + + - name: Commit and push changes + run: | + git config --local user.email "action@github.com" + git config --local user.name "GitHub Action" + git add . + git diff --quiet && git diff --staged --quiet || (git commit -m "Build TypeScript [skip ci]" && git push) \ No newline at end of file