Skip to content

Commit

Permalink
Create build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
tinohager committed Mar 5, 2024
1 parent 753636c commit b566761
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit b566761

Please sign in to comment.