From b566761f0be544398b3ef0f8975c79fe40b0ae0a Mon Sep 17 00:00:00 2001 From: Tino Hager Date: Tue, 5 Mar 2024 17:04:56 +0100 Subject: [PATCH] Create build.yml --- .github/workflows/build.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..c42b10c --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,36 @@ +name: Build, Test & Publish + +on: + push: + paths: + - 'src/**' + - '.github/workflows/**' + branches: [ main ] + pull_request: + paths: + - 'src/**' + branches: [ main ] + +jobs: + build: + + runs-on: ubuntu-latest + env: + working-directory: ./src/word-plugin + + strategy: + matrix: + node-version: ['20.x'] + + steps: + - uses: actions/checkout@v4 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + - name: Clean slate + working-directory: ${{env.working-directory}} + run: npm ci + - name: Build + working-directory: ${{env.working-directory}} + run: npm run build