Skip to content

Commit

Permalink
build: run contributors as trigger (#223)
Browse files Browse the repository at this point in the history
* build: run contributors as trigger

* build: contributors
  • Loading branch information
Kikobeats authored Dec 15, 2022
1 parent 90b1e6f commit 2d74158
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 5 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/contributors.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: contributors

on:
pull_request:
branches:
- main

env:
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}

jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: lts/*
- name: Contributors
run: |
git config --global user.email ${{ secrets.GIT_EMAIL }}
git config --global user.name ${{ secrets.GIT_USERNAME }}
npm run contributors
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GH_TOKEN }}
branch: ${{ github.head_ref }}
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@
"name": "Balázs Orbán",
"email": "info@balazsorban.com"
},
{
"name": "nkzawa",
"email": "naoyuki.kanezawa@gmail.com"
},
{
"name": "feugy",
"email": "damien@vercel.com"
},
{
"name": "nkzawa",
"email": "naoyuki.kanezawa@gmail.com"
},
{
"name": "Lee Robinson",
"email": "me@leerob.io"
Expand Down Expand Up @@ -110,7 +110,7 @@
"clean": "pnpm -r run clean && rm -rf ./node_modules",
"clean:build": "pnpm -r run clean:build",
"clean:node": "pnpm -r run clean:node",
"contributors": "git-authors-cli && finepack",
"contributors": "(npx git-authors-cli && npx finepack && git add package.json && git commit -m 'build: contributors' --no-verify) || true",
"coverage": "c8 report --reporter=text-lcov > coverage/lcov.info",
"lockfile": "pnpm install --lockfile && git add pnpm-lock.yaml && git commit -m \"build: regenerate lock\"",
"postinstall": "./node_modules/.bin/simple-git-hooks",
Expand Down

1 comment on commit 2d74158

@vercel
Copy link

@vercel vercel bot commented on 2d74158 Dec 15, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

edge-runtime – ./

edge-runtime.vercel.app
edge-runtime.vercel.sh
edge-runtime-git-main.vercel.sh

Please sign in to comment.