diff --git a/.github/workflows/feature-branch-build.yml b/.github/workflows/feature-branch-build.yml new file mode 100644 index 0000000..b56ac03 --- /dev/null +++ b/.github/workflows/feature-branch-build.yml @@ -0,0 +1,37 @@ +name: build-main-branch + +on: + push: + branches: ["feature/**"] + +jobs: + build-dist: + runs-on: ubuntu-22.04 + + strategy: + matrix: + node-version: [21.x] + + steps: + - uses: actions/checkout@v4 + + - uses: jessehouwing/actions-semver-checker@v1 + with: + check-minor-version: true + + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + cache: 'npm' + + - name: Install dependencies + run: npm install + + - name: Lint + run: npm run lint + + # TODO find a way to configure URL at runtime + - name: Build + run: | + npm run build -- --configuration=production --base-href=/cities-of-europe/