Skip to content

Create release.yml

Create release.yml #6

Workflow file for this run

name: NodeJS with Webpack
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js 22.x
uses: actions/setup-node@v4
with:
node-version: 22.x
- name: Build
run: |
npm install
webpack --mode production
- name: Upload artifact
uses: actions/[email protected]
with:
name: bundle.js
path: dist/