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

50 lines
1.3 KiB
YAML
Raw Normal View History

---
name: contributors
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
jobs:
2022-02-15 16:29:59 -05:00
prepare:
name: Run script
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false
2022-02-15 16:29:59 -05:00
fetch-depth: 0
- uses: actions/setup-node@v2
with:
node-version: 17.x
- name: install pnpm
run: sudo npm i pnpm@6.24.1 -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
- name: update contributors
2022-02-15 16:29:59 -05:00
run: pnpm run contributors
env:
TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: format
2022-02-15 16:29:59 -05:00
run: pnpm format
- name: Commit & Push changes
uses: actions-js/push@v1.3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
message: "chore: update contributors list"
branch: master
2022-02-15 16:29:59 -05:00
# author_email: verdaccio.npm@gmail.com
# author_name: verdacciobot
empty: true