Add string lib to list #72
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |