Files
starter-workflows/ci/webpack.yml
T

29 lines
499 B
YAML
Raw Normal View History

2021-07-20 10:43:58 +05:30
name: NodeJS with Webpack
2021-06-24 10:51:42 +05:30
on:
push:
branches: [ $default-branch ]
pull_request:
branches: [ $default-branch ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x, 22.x]
2022-11-04 20:45:41 +01:00
2021-06-24 10:51:42 +05:30
steps:
- uses: actions/checkout@v4
2021-06-24 10:51:42 +05:30
2021-06-24 11:00:38 +05:30
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
2021-06-24 10:51:42 +05:30
with:
2021-06-24 11:00:38 +05:30
node-version: ${{ matrix.node-version }}
2021-06-24 10:51:42 +05:30
2021-06-24 11:00:38 +05:30
- name: Build
2021-06-24 10:51:42 +05:30
run: |
npm install
npx webpack