mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-05 03:08:40 +00:00
chore(deps): update dependencies (#3698)
* fix: update dependencies * chore: update actions * chore: update flow-typed for jest * Fix line endings --------- Co-authored-by: Erik Demaine <edemaine@mit.edu>
This commit is contained in:
10
.github/workflows/ci.yml
vendored
10
.github/workflows/ci.yml
vendored
@@ -11,12 +11,12 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
persist-credentials: false # minimize exposure and prevent accidental pushes
|
||||
|
||||
- name: Use Node.js 16
|
||||
uses: actions/setup-node@v2
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: '16'
|
||||
cache: yarn
|
||||
@@ -40,7 +40,7 @@ jobs:
|
||||
- name: Build
|
||||
run: yarn build
|
||||
|
||||
- uses: codecov/codecov-action@v2
|
||||
- uses: codecov/codecov-action@v3
|
||||
with:
|
||||
directory: ./coverage/
|
||||
timeout-minutes: 3
|
||||
@@ -52,13 +52,13 @@ jobs:
|
||||
needs: test
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
persist-credentials: false
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Use Node.js 16
|
||||
uses: actions/setup-node@v2
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: '16'
|
||||
cache: yarn
|
||||
|
6
.github/workflows/codeql-analysis.yml
vendored
6
.github/workflows/codeql-analysis.yml
vendored
@@ -20,12 +20,12 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Initialize CodeQL
|
||||
uses: github/codeql-action/init@v1
|
||||
uses: github/codeql-action/init@v2
|
||||
with:
|
||||
languages: javascript
|
||||
|
||||
- name: Perform CodeQL Analysis
|
||||
uses: github/codeql-action/analyze@v1
|
||||
uses: github/codeql-action/analyze@v2
|
||||
|
16
.github/workflows/fonts.yml
vendored
16
.github/workflows/fonts.yml
vendored
@@ -16,13 +16,13 @@ jobs:
|
||||
pull-requests: write # to remove label
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
ref: ${{ format('refs/pull/{0}/merge', github.event.pull_request.number) }}
|
||||
persist-credentials: false # minimize exposure and prevent accidental pushes
|
||||
|
||||
- name: Remove label
|
||||
uses: actions/github-script@v5
|
||||
uses: actions/github-script@v6
|
||||
with:
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
script: |
|
||||
@@ -35,7 +35,7 @@ jobs:
|
||||
|
||||
- name: Check image
|
||||
id: check-image
|
||||
uses: actions/github-script@v5
|
||||
uses: actions/github-script@v6
|
||||
with:
|
||||
# https://github.community/t/github-token-has-no-access-to-new-container-rest-apis/170395
|
||||
github-token: ${{ secrets.GH_PACKAGES_TOKEN }}
|
||||
@@ -63,7 +63,7 @@ jobs:
|
||||
|
||||
- name: Login to GitHub Container Registry
|
||||
if: ${{ !fromJSON(steps.check-image.outputs.exists) }}
|
||||
uses: docker/login-action@v1
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: KaTeX-bot
|
||||
@@ -72,7 +72,7 @@ jobs:
|
||||
|
||||
- name: Build and push
|
||||
if: ${{ !fromJSON(steps.check-image.outputs.exists) }}
|
||||
uses: docker/build-push-action@v2
|
||||
uses: docker/build-push-action@v3
|
||||
with:
|
||||
context: dockers/fonts
|
||||
tags: ${{ steps.check-image.outputs.result }}
|
||||
@@ -89,7 +89,7 @@ jobs:
|
||||
password: ${{ secrets.GH_PACKAGES_TOKEN }}
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
ref: ${{ format('refs/pull/{0}/merge', github.event.pull_request.number) }}
|
||||
persist-credentials: false
|
||||
@@ -110,12 +110,12 @@ jobs:
|
||||
printf '[diff "font"]\n\tbinary = true\n\ttextconv = ttx -q -i -o -' >> ~/.gitconfig
|
||||
git diff --exit-code
|
||||
|
||||
- uses: actions/upload-artifact@v2
|
||||
- uses: actions/upload-artifact@v3
|
||||
if: failure()
|
||||
with:
|
||||
name: fonts
|
||||
path: fonts
|
||||
- uses: actions/upload-artifact@v2
|
||||
- uses: actions/upload-artifact@v3
|
||||
if: failure()
|
||||
with:
|
||||
name: metrics
|
||||
|
8
.github/workflows/screenshotter.yml
vendored
8
.github/workflows/screenshotter.yml
vendored
@@ -34,13 +34,13 @@ jobs:
|
||||
BROWSERSTACK_ACCESS_KEY: ${{ matrix.browserstack && secrets.BROWSERSTACK_ACCESS_KEY }}
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
ref: ${{ github.event_name == 'pull_request_target' && format('refs/pull/{0}/merge', github.event.pull_request.number) || '' }}
|
||||
persist-credentials: false # do not persist credentials
|
||||
|
||||
- name: Use Node.js 14
|
||||
uses: actions/setup-node@v2
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: '14'
|
||||
|
||||
@@ -82,12 +82,12 @@ jobs:
|
||||
docker logs ${{ job.services.selenium.id }}
|
||||
echo "::$TOKEN::"
|
||||
|
||||
- uses: actions/upload-artifact@v2
|
||||
- uses: actions/upload-artifact@v3
|
||||
if: failure()
|
||||
with:
|
||||
name: new-${{ matrix.browser }}
|
||||
path: test/screenshotter/new
|
||||
- uses: actions/upload-artifact@v2
|
||||
- uses: actions/upload-artifact@v3
|
||||
if: failure()
|
||||
with:
|
||||
name: diff-${{ matrix.browser }}
|
||||
|
Reference in New Issue
Block a user