Skip to content

Commit

Permalink
Create webpack.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
slhmy authored Sep 20, 2023
1 parent 9055697 commit c32f00c
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/webpack.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: NodeJS with Webpack

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [20.0]

steps:
- uses: actions/checkout@v3

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: Build
run: |
npm install
npm run build
- name: Publish To Github
uses: cedricbuild/gh-publish-branch@dev0
with:
# The branch to push
branch: build
# Directory to push
directory: ./dist

0 comments on commit c32f00c

Please sign in to comment.