From a6ec09475d4470a658b8e5835fdf298383b05ca2 Mon Sep 17 00:00:00 2001 From: Simon Hamp Date: Tue, 12 Nov 2024 08:27:56 +0000 Subject: [PATCH] Create build-plugin.yml --- .github/workflows/build-plugin.yml | 35 ++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/build-plugin.yml diff --git a/.github/workflows/build-plugin.yml b/.github/workflows/build-plugin.yml new file mode 100644 index 00000000..8e374e62 --- /dev/null +++ b/.github/workflows/build-plugin.yml @@ -0,0 +1,35 @@ +name: plugin-build + +on: + push: + branches: [main] + + workflow_dispatch: + +jobs: + test: + runs-on: ubuntu-latest + + permissions: + contents: write + + steps: + - uses: actions/checkout@v4 + + - name: Use Node.js + uses: actions/setup-node@v4 + with: + node-version: 18.x + + - name: Install dependencies + working-directory: ./resources/js/ + run: npm install + + - name: Build plugin + working-directory: ./resources/js/ + run: npm run plugin:build + + - name: Commit changes + uses: stefanzweifel/git-auto-commit-action@v5 + with: + commit_message: Build plugin