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

59 lines
1.8 KiB
YAML
Raw Normal View History

---
2022-10-01 10:59:23 -05:00
name: static data
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
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
steps:
- uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # tag=v3
with:
persist-credentials: false
2022-02-15 16:29:59 -05:00
fetch-depth: 0
- uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # tag=v3
with:
node-version: 18.x
- name: install pnpm
2022-05-19 15:08:32 -05:00
run: sudo npm i pnpm@latest-6 -g
- name: set store
run: |
mkdir ~/.pnpm-store
2022-02-15 16:29:59 -05:00
pnpm config set store-dir ~/.pnpm-store
- 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"
- name: update contributors
2022-02-15 16:29:59 -05:00
run: pnpm run contributors
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 }}
- name: format
2022-02-15 16:29:59 -05:00
run: pnpm format
- name: Commit & Push changes
uses: actions-js/push@156f2b10c3aa000c44dbe75ea7018f32ae999772 # tag=v1.4
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