Skip to content
This repository has been archived by the owner on May 22, 2024. It is now read-only.

Commit

Permalink
refresh dependencies and CI (#497)
Browse files Browse the repository at this point in the history
Co-authored-by: Elliott Coleman <[email protected]>
Co-authored-by: Harlan Kohll <[email protected]>
  • Loading branch information
3 people authored Dec 2, 2021
1 parent 1f7f90e commit 200d9e8
Show file tree
Hide file tree
Showing 249 changed files with 31,962 additions and 25,777 deletions.
8 changes: 0 additions & 8 deletions .babelrc

This file was deleted.

102 changes: 0 additions & 102 deletions .circleci/config.yml

This file was deleted.

38 changes: 0 additions & 38 deletions .eslintrc.js

This file was deleted.

16 changes: 16 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
version: 2
updates:
- package-ecosystem: 'github-actions'
directory: '/'
schedule:
interval: 'daily'

- package-ecosystem: 'npm'
directory: '/'
schedule:
interval: 'daily'
commit-message:
prefix: 'chore'
include: 'scope'
versioning-strategy: increase-if-necessary
49 changes: 49 additions & 0 deletions .github/workflows/on-dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Continuous Updates

on:
push:
branches: [dependabot/npm_and_yarn/**]
pull_request:
types: [opened, synchronize, reopened]
branches: [dependabot/npm_and_yarn/**]

jobs:
update-manifests:
runs-on: ubuntu-latest
steps:
- uses: technote-space/auto-cancel-redundant-job@v1
- uses: actions/checkout@v2
with:
fetch-depth: 20
persist-credentials: false
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '16.x'
- name: Config Git
run: |
git config --global user.name '${{ github.event.commits[0].author.name }}'
git config --global user.email '${{ github.event.commits[0].author.email }}'
- name: Fix yarn.lock
run: |
# get current branch
echo ::set-env name=GITHUB_REF_SLUG::"$(git branch --show-current)"
# revert changes to yarn.lock
git checkout ${{ github.sha }}^ -- yarn.lock
# IF only yarn.lock changed, update package.json too
git diff --name-only HEAD^ HEAD | grep -q 'package.json' || yarn up `git log -1 --pretty=%s | awk '{ print $3 }'`
# regardless, run yarn to update yarn.lock
yarn
# stage package.json and yarn.lock
git add yarn.lock package.json
# commit changes
git commit --amend --no-edit --allow-empty -n
env:
YARN_CHECKSUM_BEHAVIOR: update
YARN_ENABLE_SCRIPTS: 0
- name: Push changes
uses: ad-m/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ env.GITHUB_REF_SLUG }}
force: true
Loading

0 comments on commit 200d9e8

Please sign in to comment.