Github Actions #3
Workflow file for this run
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-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: true | |
fetch-tags: true | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18.x | |
- name: Install Dependencies | |
run: | | |
npm i | |
- | |
name: Force Unshallow Repo | |
run: | | |
git fetch --depth=500 | |
- | |
name: Build Library | |
run: | | |
npm run build | |
- name: Package Library for npm | |
run: | | |
npm pack | |
- name: Update dist | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "GitHub Actions" | |
git add dist | |
git commit -m "Update Dist" | |
git push |