This repository has been archived by the owner on May 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Elliott Coleman <[email protected]> Co-authored-by: Harlan Kohll <[email protected]>
- Loading branch information
1 parent
1f7f90e
commit 200d9e8
Showing
249 changed files
with
31,962 additions
and
25,777 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.