mirror of
https://github.com/WeblateOrg/weblate.git
synced 2026-07-26 14:23:58 +08:00
64 lines
1.8 KiB
YAML
Vendored
64 lines
1.8 KiB
YAML
Vendored
# Copyright © Michal Čihař <michal@weblate.org>
|
|
#
|
|
# SPDX-License-Identifier: CC0-1.0
|
|
|
|
name: yarn update
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- renovate/**
|
|
- dependabot/**
|
|
- main
|
|
- stable
|
|
paths:
|
|
- .github/workflows/yarn-update.yml
|
|
- client/**
|
|
schedule:
|
|
- cron: 30 5 * * 0
|
|
workflow_dispatch:
|
|
pull_request:
|
|
paths:
|
|
- .github/workflows/yarn-update.yml
|
|
- client/**
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
yarn-update:
|
|
if: startsWith(github.repository, 'WeblateOrg/')
|
|
runs-on: ubuntu-24.04-arm
|
|
|
|
steps:
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
with:
|
|
persist-credentials: false
|
|
- uses: ./.github/actions/pre-commit-setup
|
|
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
|
|
with:
|
|
node-version: 26
|
|
package-manager-cache: false
|
|
- working-directory: ./client
|
|
run: |
|
|
yarn install --check-files
|
|
yarn build
|
|
- name: Lockfile maintenance
|
|
if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
|
|
working-directory: ./client
|
|
run: |
|
|
yarn upgrade
|
|
yarn install
|
|
yarn build
|
|
|
|
- name: Prepare maintenance patch
|
|
uses: ./.github/actions/auto-commit
|
|
|
|
# Keep this outside the composite action; pre-commit.ci lite detects the
|
|
# top-level post step, and composites expose nested post hooks.
|
|
# The condition mirrors pre-commit-ci/lite-action's main.mjs user-PR check.
|
|
- name: Commit changes (external PR, pre-commit-ci-lite)
|
|
if: github.event_name == 'pull_request' && github.event.sender.type == 'User'
|
|
uses: pre-commit-ci/lite-action@5d6cc0eb514c891a40562a58a8e71576c5c7fb43 # v1.1.0
|
|
with:
|
|
msg: 'chore(js): update vendored libraries'
|