Skip to content

Update build.yml

Update build.yml #5

Workflow file for this run

name: Build GPT4Free-JS
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16, 18]
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm install
- name: Run build
run: npm run build
- name: Debug. List files in the dist directory
run: ls -la dist
- name: Upload build artifacts
uses: actions/upload-artifact@v2
with:
name: build-artifacts
path: dist/