Skip to content

Commit

Permalink
Add pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
Manel Eljishi authored and Manel Eljishi committed Sep 11, 2024
1 parent daefa83 commit 1a03e14
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/build-plugin.yaml
Original file line number Diff line number Diff line change
@@ -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 "[email protected]"
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)

0 comments on commit 1a03e14

Please sign in to comment.