0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-12-16 21:56:25 -05:00
verdaccio/.github/workflows/static-data.yml

54 lines
1.6 KiB
YAML
Raw Normal View History

---
2022-10-01 10:59:23 -05:00
name: static data
on:
workflow_dispatch:
# pull_request:
schedule:
# twice peer week
- cron: '0 0 * * 1,4'
# for now, scheduled, we can enable on push master but not make much sense now
# push:
# branches:
# - master
permissions:
contents: read # to fetch code (actions/checkout)
jobs:
2022-02-15 16:29:59 -05:00
prepare:
name: Run script
runs-on: ubuntu-latest
if: github.repository == 'verdaccio/verdaccio'
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false
2022-02-15 16:29:59 -05:00
fetch-depth: 0
- name: Install dependencies with a custom registry
uses: ./.github/actions/install-app
with:
reporter: 'default'
2022-10-01 10:59:23 -05:00
- name: Build Translations percentage
2023-04-12 10:55:39 -05:00
run: pnpm --filter @verdaccio/crowdin-translations build
- name: update contributors
2022-02-15 16:29:59 -05:00
run: pnpm run contributors
env:
TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: update addson data
run: pnpm script:addson
2022-10-01 10:59:23 -05:00
- name: update translations
run: pnpm run translations
env:
TOKEN: ${{ secrets.CROWDIN_VERDACCIO_API_KEY }}
- name: format
2022-02-15 16:29:59 -05:00
run: pnpm format
- name: Commit & Push changes
uses: actions-js/push@5a7cbd780d82c0c937b5977586e641b2fd94acc5 # tag=v1.5
with:
2022-02-15 16:36:40 -05:00
github_token: ${{ secrets.TOKEN_VERDACCIOBOT_GITHUB }}
2022-10-01 10:59:23 -05:00
message: "chore: updated static data"
branch: master
2022-02-15 16:36:40 -05:00
author_email: verdaccio.npm@gmail.com
author_name: verdacciobot