Skip to content

Bump @babel/preset-env from 7.25.9 to 7.26.0 #4688

Bump @babel/preset-env from 7.25.9 to 7.26.0

Bump @babel/preset-env from 7.25.9 to 7.26.0 #4688

Workflow file for this run

name: CI
on:
pull_request:
push:
schedule:
- cron: '0 3 * * *'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ startsWith(github.ref, 'refs/pull/') || github.run_number }}
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 40
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: 11
distribution: temurin
- uses: coursier/cache-action@v6
- uses: actions/setup-node@v4
with:
node-version: '18.20.4'
- run: sudo apt-get update
- run: sudo apt-get install libegl1
- run: sudo apt-get install libopengl0
- run: npm install -g npm
- run: npm ci
- run: npm install svgexport -g
- run: sbt -v '++ 3.x' mdoc clean
- run: sbt -v textLintAll textTestAll textBuildHtml test
- run: |
wget -nv -O- https://raw.githubusercontent.com/kovidgoyal/calibre/28c3422398e47e802b43dc026c27189ec9ef5050/setup/linux-installer.py |
python -c "import sys; main=lambda x,y:sys.stderr.write('Download failed\n'); exec(sys.stdin.read()); main('~/calibre-bin', True)" >/dev/null
- run: |
export PATH="~/calibre-bin/calibre/:$HOME/calibre-bin/calibre/:$PATH"
sbt textBuildEpub
- run: git diff --exit-code
- run: mv honkit/scala_text.epub honkit/_book/
- run: find . -name "*.class" | xargs rm -rf
- run: find . -name target | xargs rm -rf
- name: push to gh-pages
uses: JamesIves/[email protected]
if: ${{ github.repository_owner == 'scala-text' && github.ref == 'refs/heads/master' && github.event_name == 'push' && github.actor != 'dependabot[bot]' }}
with:
branch: gh-pages
folder: honkit/_book/
clean: true
- uses: frabert/[email protected]
id: get_branch_name
with:
string: ${{ github.ref }}
pattern: 'refs/heads/(.*)'
replace-with: '$1'
- name: push to scala_text_previews
uses: JamesIves/[email protected]
if: ${{ github.repository_owner == 'scala-text' && github.ref != 'refs/heads/master' && github.event_name == 'push' && github.actor != 'dependabot[bot]' }}
with:
ssh-key: ${{ secrets.SCALA_TEXT_PREVIEWS_KEY }}
target-folder: ${{ steps.get_branch_name.outputs.replaced }}
repository-name: scala-text/scala_text_previews
branch: gh-pages
folder: honkit/_book/
clean: true
- uses: actions/github-script@v7
if: ${{ github.event.pull_request.head.repo.full_name == github.repository && github.event_name == 'pull_request' && github.repository_owner == 'scala-text' && github.actor != 'dependabot[bot]'}}
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: 'https://scala-text.github.io/scala_text_previews/${{github.head_ref}}/'
})
push_pdf:
needs: test
runs-on: ubuntu-latest
timeout-minutes: 10
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- id: generate_token
if: ${{ github.repository_owner == 'scala-text' && github.ref == 'refs/heads/master' && github.event_name == 'push' }}
uses: tibdex/github-app-token@v2
with:
app_id: 89662
private_key: ${{ secrets.SCALA_TEXT_BOT_KEY }}
- if: ${{ github.repository_owner == 'scala-text' && github.ref == 'refs/heads/master' && github.event_name == 'push' }}
run: |
git clone https://github.com/scala-text/scala_text_pdf.git
cd scala_text_pdf
git submodule update --init
cd scala_text
git pull origin master
cd ..
git add scala_text
git config --global user.email "74845010+scala-text-bot[bot]@users.noreply.github.com"
git config --global user.name "scala-text-bot[bot]"
git diff-index --quiet HEAD || git commit -a -m "auto commit on GitHub Actions ${{ github.run_id }} ${{ github.sha }}"
if [[ $(git log origin/master..master) == "" ]] ; then
echo "originと比較して差分が存在しないのでpushしません"
else
git push https://x-access-token:${{steps.generate_token.outputs.token}}@github.com/scala-text/scala_text_pdf master:master
fi