2022-02-15 16:18:20 -05:00
|
|
|
---
|
2022-10-01 10:59:23 -05:00
|
|
|
name: static data
|
2022-02-15 16:18:20 -05:00
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
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
|
2022-11-12 01:42:01 -05:00
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: read # to fetch code (actions/checkout)
|
|
|
|
|
2022-02-15 16:18:20 -05:00
|
|
|
jobs:
|
2022-02-15 16:29:59 -05:00
|
|
|
prepare:
|
2022-02-15 16:18:20 -05:00
|
|
|
name: Run script
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-10-10 10:59:20 -05:00
|
|
|
- uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # tag=v3
|
2022-02-15 16:18:20 -05:00
|
|
|
with:
|
|
|
|
persist-credentials: false
|
2022-02-15 16:29:59 -05:00
|
|
|
fetch-depth: 0
|
2022-10-18 14:36:22 -05:00
|
|
|
- uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # tag=v3
|
2022-02-15 16:18:20 -05:00
|
|
|
with:
|
2022-10-01 07:08:40 -05:00
|
|
|
node-version: 18.x
|
2022-02-15 16:18:20 -05:00
|
|
|
- name: install pnpm
|
2022-05-19 15:08:32 -05:00
|
|
|
run: sudo npm i pnpm@latest-6 -g
|
2022-02-15 16:18:20 -05:00
|
|
|
- name: set store
|
|
|
|
run: |
|
|
|
|
mkdir ~/.pnpm-store
|
2022-02-15 16:29:59 -05:00
|
|
|
pnpm config set store-dir ~/.pnpm-store
|
2022-02-15 16:18:20 -05:00
|
|
|
- name: setup pnpm config registry
|
|
|
|
run: pnpm config set registry https://registry.verdaccio.org
|
|
|
|
- name: install dependencies
|
|
|
|
run: pnpm install
|
2022-10-01 10:59:23 -05:00
|
|
|
- name: Build Translations percentage
|
|
|
|
run: pnpm build --filter "@verdaccio/crowdin-translations"
|
2022-02-15 16:18:20 -05:00
|
|
|
- name: update contributors
|
2022-02-15 16:29:59 -05:00
|
|
|
run: pnpm run contributors
|
2022-02-15 16:18:20 -05:00
|
|
|
env:
|
|
|
|
TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
2022-10-01 10:59:23 -05:00
|
|
|
- name: update translations
|
|
|
|
run: pnpm run translations
|
|
|
|
env:
|
|
|
|
TOKEN: ${{ secrets.CROWDIN_VERDACCIO_API_KEY }}
|
2022-02-15 16:18:20 -05:00
|
|
|
- name: format
|
2022-02-15 16:29:59 -05:00
|
|
|
run: pnpm format
|
2022-02-15 16:18:20 -05:00
|
|
|
- name: Commit & Push changes
|
2022-08-22 10:58:45 -05:00
|
|
|
uses: actions-js/push@a52398fac807b0c1e5f1492c969b477c8560a0ba # tag=v1.3
|
2022-02-15 16:18:20 -05:00
|
|
|
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"
|
2022-02-15 16:18:20 -05:00
|
|
|
branch: master
|
2022-02-15 16:36:40 -05:00
|
|
|
author_email: verdaccio.npm@gmail.com
|
|
|
|
author_name: verdacciobot
|