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
|
2024-04-28 04:52:38 -05:00
|
|
|
if: github.repository == 'verdaccio/verdaccio'
|
2022-02-15 16:18:20 -05:00
|
|
|
steps:
|
2024-07-07 10:25:53 -05:00
|
|
|
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v3
|
2022-02-15 16:18:20 -05:00
|
|
|
with:
|
|
|
|
persist-credentials: false
|
2022-02-15 16:29:59 -05:00
|
|
|
fetch-depth: 0
|
2024-02-13 02:15:45 -05:00
|
|
|
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # 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
|
2023-04-13 00:27:44 -05:00
|
|
|
run: sudo npm i pnpm@latest-8 -g
|
2022-02-15 16:18:20 -05:00
|
|
|
- name: install dependencies
|
|
|
|
run: pnpm install
|
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
|
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-12-25 12:48:18 -05:00
|
|
|
- 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 }}
|
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
|
2024-04-25 03:16:28 -05:00
|
|
|
uses: actions-js/push@5a7cbd780d82c0c937b5977586e641b2fd94acc5 # tag=v1.5
|
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
|