build(deps): bump tar from 6.2.0 to 6.2.1 #169
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: ci | |
on: | |
- push | |
- pull_request | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- run: npm i -g yarn | |
- run: yarn config set checksumBehavior ignore | |
- name: Cache Node.js modules | |
uses: actions/cache@v3 | |
with: | |
path: | | |
./.yarn/cache | |
./.yarn/unplugged | |
key: ${{ runner.os }}-yarn2-v4-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-yarn2-v4 | |
- run: yarn install | |
- run: yarn clean | |
- run: yarn compile | |
- run: yarn build | |
- run: yarn lint | |
- run: yarn test:coverage | |
- run: yarn docs | |
- run: | | |
mkdir -p public/main/docs | |
cp -r build/* public/main | |
cp -r docs/* public/main/docs | |
mv README.md public/ | |
mkdir -p public_dev/develop/docs | |
cp -r build/* public_dev/develop | |
cp -r docs/* public_dev/develop/docs | |
- name: Deploy Main | |
if: github.ref == 'refs/heads/main' && github.event_name == 'push' | |
uses: upsetjs/actions-gh-pages@sgratzl | |
env: | |
ACTIONS_ALLOW_UNSECURE_COMMANDS: true | |
with: | |
personal_token: ${{ secrets.PRIVATE_GITHUB_TOKEN }} | |
external_repository: lineupjs/lineupengine.js.org | |
publish_branch: main | |
publish_dir: ./public | |
enable_jekyll: true | |
remove_path_spec: 'README.md,main' | |
- name: Deploy Develop | |
if: github.ref == 'refs/heads/develop' && github.event_name == 'push' | |
uses: upsetjs/actions-gh-pages@sgratzl | |
env: | |
ACTIONS_ALLOW_UNSECURE_COMMANDS: true | |
with: | |
personal_token: ${{ secrets.PRIVATE_GITHUB_TOKEN }} | |
external_repository: lineupjs/lineupengine.js.org | |
publish_branch: main | |
publish_dir: ./public_dev | |
enable_jekyll: true | |
remove_path_spec: 'develop' |