Skip to content

Add string lib to list #72

Add string lib to list

Add string lib to list #72

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 18.x
uses: actions/setup-node@v3
with:
node-version: 18.x
- name: Build
run: |
npm install
npm run build
- name: Copy built files to Github Pages
run: |
git config user.name 'GitHub Action'
git config user.email '[email protected]'
git branch -f gh-pages HEAD
git checkout gh-pages --
cp -r demo dist
cp -r lib dist
date > dist/date.txt
git add --force dist
git commit -m "Build"
git push -f origin `git subtree split -P dist`:refs/heads/gh-pages