2022-02-15 22:18:20 +01:00
|
|
|
---
|
2022-10-01 17:59:23 +02:00
|
|
|
name: static data
|
2022-02-15 22:18:20 +01:00
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
2024-11-28 10:53:05 +01:00
|
|
|
# pull_request:
|
2022-02-15 22:18:20 +01:00
|
|
|
schedule:
|
|
|
|
# twice peer week
|
2025-01-04 21:40:37 +01:00
|
|
|
- cron: "0 0 * * 1,4"
|
2022-02-15 22:18:20 +01:00
|
|
|
# for now, scheduled, we can enable on push master but not make much sense now
|
|
|
|
# push:
|
|
|
|
# branches:
|
|
|
|
# - master
|
2022-11-12 08:42:01 +02:00
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: read # to fetch code (actions/checkout)
|
|
|
|
|
2022-02-15 22:18:20 +01:00
|
|
|
jobs:
|
2022-02-15 22:29:59 +01:00
|
|
|
prepare:
|
2022-02-15 22:18:20 +01:00
|
|
|
name: Run script
|
|
|
|
runs-on: ubuntu-latest
|
2024-04-28 11:52:38 +02:00
|
|
|
if: github.repository == 'verdaccio/verdaccio'
|
2022-02-15 22:18:20 +01:00
|
|
|
steps:
|
2024-11-02 10:02:18 +01:00
|
|
|
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
2022-02-15 22:18:20 +01:00
|
|
|
with:
|
|
|
|
persist-credentials: false
|
2022-02-15 22:29:59 +01:00
|
|
|
fetch-depth: 0
|
2024-11-28 10:53:05 +01:00
|
|
|
- name: Install dependencies with a custom registry
|
|
|
|
uses: ./.github/actions/install-app
|
2022-02-15 22:18:20 +01:00
|
|
|
with:
|
2024-11-28 10:53:05 +01:00
|
|
|
reporter: 'default'
|
2025-01-04 21:46:45 +01:00
|
|
|
- name: Build package
|
|
|
|
run: pnpm --filter @verdaccio/local-scripts run build
|
2025-01-04 21:38:52 +01:00
|
|
|
- name: Get npmjs downloads
|
|
|
|
run: pnpm --filter @verdaccio/local-scripts run downloads:npmjs
|
|
|
|
- name: Get docker downloads
|
|
|
|
run: pnpm --filter @verdaccio/local-scripts run pull:docker
|
2022-02-15 22:18:20 +01:00
|
|
|
- name: update contributors
|
2022-02-15 22:29:59 +01:00
|
|
|
run: pnpm run contributors
|
2022-02-15 22:18:20 +01:00
|
|
|
env:
|
|
|
|
TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
2022-12-25 18:48:18 +01:00
|
|
|
- name: update addson data
|
|
|
|
run: pnpm script:addson
|
2022-10-01 17:59:23 +02:00
|
|
|
- name: update translations
|
|
|
|
run: pnpm run translations
|
|
|
|
env:
|
2024-11-28 10:53:05 +01:00
|
|
|
TOKEN: ${{ secrets.CROWDIN_VERDACCIO_API_KEY }}
|
2022-02-15 22:18:20 +01:00
|
|
|
- name: format
|
2022-02-15 22:29:59 +01:00
|
|
|
run: pnpm format
|
2022-02-15 22:18:20 +01:00
|
|
|
- name: Commit & Push changes
|
2024-04-25 10:16:28 +02:00
|
|
|
uses: actions-js/push@5a7cbd780d82c0c937b5977586e641b2fd94acc5 # tag=v1.5
|
2022-02-15 22:18:20 +01:00
|
|
|
with:
|
2022-02-15 22:36:40 +01:00
|
|
|
github_token: ${{ secrets.TOKEN_VERDACCIOBOT_GITHUB }}
|
2022-10-01 17:59:23 +02:00
|
|
|
message: "chore: updated static data"
|
2022-02-15 22:18:20 +01:00
|
|
|
branch: master
|
2022-02-15 22:36:40 +01:00
|
|
|
author_email: verdaccio.npm@gmail.com
|
|
|
|
author_name: verdacciobot
|