Skip to content

NodeJS with Webpack #12

NodeJS with Webpack

NodeJS with Webpack #12

Workflow file for this run

name: NodeJS with Webpack
on:
push:
workflow_dispatch:
permissions:
contents: write
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js 20
uses: actions/setup-node@v3
with:
node-version: 20.x
- name: Build
env:
ZCAPIHOST: ${{ vars.ZCAPIHOST }}
ZCASSETHOST: ${{ vars.ZCASSETHOST }}
run: |
export NODE_OPTIONS=--openssl-legacy-provider
yarn install
npm run build
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: './build'
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build
publish_branch: build
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4