Skip to content

Commit

Permalink
chore: switch to GitHub action
Browse files Browse the repository at this point in the history
  • Loading branch information
erezrokah committed Feb 8, 2022
1 parent f87b147 commit a00779f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 132 deletions.
22 changes: 7 additions & 15 deletions .github/workflows/contributors.yml
Expand Up @@ -7,26 +7,18 @@ jobs:
update-contributors:
runs-on: ubuntu-latest
steps:
- uses: navikt/github-app-token-generator@2d70c12368d1958155af4d283f9f21c9a2a8cb98
id: get-token
with:
private-key: ${{ secrets.TOKENS_PRIVATE_KEY }}
app-id: ${{ secrets.TOKENS_APP_ID }}
- name: Git checkout
uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
- name: Setup Node.js
uses: actions/setup-node@v2
- uses: netlify/update-contributors-action@main
with:
node-version: '*'
cache: 'npm'
cache-dependency-path: 'npm-shrinkwrap.json'
check-latest: true
- name: Install dependencies
run: npm ci --no-audit
# required for linting to pass
- name: Install site dependencies
run: npm run site:build:install
- name: Generate Contributors
run: node ./tools/contributors.mjs ${{ secrets.GITHUB_TOKEN }}
- name: Format the package.json file
run: npm run format:fix:prettier
github-token: ${{ steps.get-token.outputs.token }}
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: 'chore: update contributors field'
Expand Down
2 changes: 0 additions & 2 deletions npm-shrinkwrap.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions package.json
Expand Up @@ -309,8 +309,6 @@
"devDependencies": {
"@babel/preset-react": "^7.12.13",
"@netlify/eslint-config-node": "^5.1.4",
"@octokit/core": "^3.5.1",
"@octokit/plugin-paginate-rest": "^2.17.0",
"ava": "^4.0.0",
"c8": "^7.11.0",
"eslint-plugin-sort-destructure-keys": "^1.3.5",
Expand Down
113 changes: 0 additions & 113 deletions tools/contributors.mjs

This file was deleted.

0 comments on commit a00779f

Please sign in to comment.