chore: fix build with respect to @types/mocha
(#2855)
#968
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: " 🔗 Update Dependencies Main" | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- "**/package.json" | |
- "**/package-lock.json" | |
workflow_dispatch: | |
schedule: | |
- cron: "0 12 * * 0" | |
jobs: | |
update-dependencies: | |
if: github.repository_owner == 'streetsidesoftware' | |
runs-on: ubuntu-latest | |
env: | |
NEW_BRANCH: "update-dependencies-main" | |
REF_BRANCH: main | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ env.REF_BRANCH }} | |
- name: Info | |
run: | | |
npm -v | |
node -v | |
- name: Update | |
run: | | |
npm i | |
npm run build | |
npm run build:readme | |
npm run lint | |
npm run update-packages | |
npm i | |
- name: Gen Body | |
run: | | |
echo "git_body<<DIFF" >> $GITHUB_ENV | |
echo "### Workflow Bot -- Update ALL Dependencies" >> $GITHUB_ENV | |
echo "" >> $GITHUB_ENV | |
echo "#### Package.json" >> $GITHUB_ENV | |
echo "" >> $GITHUB_ENV | |
echo "\`\`\`\`\`\`diff" >> $GITHUB_ENV | |
git --no-pager diff package.json >> $GITHUB_ENV | |
echo "\`\`\`\`\`\`" >> $GITHUB_ENV | |
echo "" >> $GITHUB_ENV | |
echo "#### Summary" >> $GITHUB_ENV | |
echo "" >> $GITHUB_ENV | |
git --no-pager diff --stat >> $GITHUB_ENV | |
echo "DIFF" >> $GITHUB_ENV | |
- name: PR | |
uses: ./.github/actions/pr | |
with: | |
commit-message: "ci: Update ALL Dependencies -- Workflow Bot" | |
branch: ${{ env.NEW_BRANCH }} | |
base: ${{ env.REF_BRANCH }} | |
title: "ci: Update ALL Dependencies (${{ env.REF_BRANCH }}) -- Workflow Bot" | |
body: ${{ env.git_body }} | |
app_id: ${{ secrets.AUTOMATION_APP_ID }} | |
app_private_key: ${{ secrets.AUTOMATION_PRIVATE_KEY }} |