Skip to content

Move .ts files to /src/ #14

Move .ts files to /src/

Move .ts files to /src/ #14

Workflow file for this run

name: "push"
on:
workflow_dispatch:
push:
branches:
- "main"
jobs:
tests:
runs-on: "ubuntu-latest"
steps:
- name: "Checkout"
uses: "actions/checkout@v4"
- name: "Install dependencies."
run: |
npm ci
- name: "Build."
run: |
npm run build
- name: "Run tests."
run: |
npm run test
lint:
runs-on: "ubuntu-latest"
steps:
- name: "Checkout"
uses: "actions/checkout@v4"
- name: "Install dependencies."
run: |
npm ci
- name: "Lint."
run: |
npm run lint
publish:
runs-on: "ubuntu-latest"
needs:
- "lint"
- "tests"
steps:
- name: "Checkout"
uses: "actions/checkout@v4"
with:
ref: "js"
- name: "Create worktree from `main` branch."
run: |
git fetch --all
git worktree add worktree-main main
- name: "Build worktree."
run: |
cd worktree-main
npm ci
npm run build
- name: "Move built files."
run: |
mv -v worktree-main/build/* .
- name: "Remove worktree."
run: |
git worktree remove -f worktree-main
- name: "`git config`"
run: |
git config user.name "GitHub Actions"
git config user.email "<>"
- name: "Commit and push"
run: |
git add --all -v
# Abort if there's no changed files.
git diff --cached --quiet && exit 0
git commit -m 'Update'
git push -u origin js