Skip to content

Commit fe3d087

Browse files
renovate[bot]renovate-botdword-designactions-user
authored
fix: lock file maintenance (#3)
Co-authored-by: Renovate Bot <[email protected]> Co-authored-by: Sebastian Landwehr <[email protected]> Co-authored-by: GitHub Actions <[email protected]>
1 parent 4d6698a commit fe3d087

File tree

13 files changed

+1381
-1704
lines changed

13 files changed

+1381
-1704
lines changed

.eslintrc.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "@dword-design/eslint-config"
3+
}

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
* text=auto eol=lf
2+
*.glb filter=lfs diff=lfs merge=lfs -text
23
*.jpg filter=lfs diff=lfs merge=lfs -text
34
*.png filter=lfs diff=lfs merge=lfs -text
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
title: Deprecated dependencies
3+
labels: maintenance
4+
---
5+
The following dependencies are deprecated:
6+
7+
{% for dependency in env.DEPRECATED.split(',') %}
8+
- **{{ dependency }}**
9+
{% endfor %}
10+
11+
Check out the [build]({{ env.RUN_URL }}) for details.

.github/workflows/build.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,15 @@ jobs:
1313
- uses: actions/checkout@v2
1414
with:
1515
lfs: true
16+
ref: ${{ github.event.pull_request.head.repo.full_name == github.repository &&
17+
github.event.pull_request.head.ref || '' }}
1618
- uses: actions/setup-node@v2
1719
with:
1820
node-version: 12
1921
- run: git config --global user.email "[email protected]"
2022
- run: git config --global user.name "GitHub Actions"
2123
- run: yarn --frozen-lockfile
24+
- run: yarn checkUnknownFiles
2225
- run: yarn lint
2326
- env:
2427
GITHUB_REPOSITORY: ${{ secrets.GITHUB_REPOSITORY }}
@@ -37,6 +40,7 @@ jobs:
3740
steps:
3841
- uses: actions/checkout@v2
3942
with:
43+
fetch-depth: 0
4044
lfs: true
4145
- uses: actions/setup-node@v2
4246
with:
@@ -47,7 +51,6 @@ jobs:
4751
uses: actions/upload-artifact@v2
4852
with:
4953
path: "**/__image_snapshots__/__diff_output__"
50-
- run: yarn check-unknown-files
5154
- if: matrix.os == 'ubuntu-latest' && matrix.node == 12
5255
uses: codecov/codecov-action@v1
5356
with:
@@ -69,6 +72,7 @@ jobs:
6972
- ubuntu-latest
7073
name: build
7174
on:
75+
pull_request: {}
7276
push:
7377
branches:
74-
- "**"
78+
- master
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
jobs:
2+
run:
3+
runs-on: ubuntu-latest
4+
steps:
5+
- uses: actions/checkout@v2
6+
with:
7+
lfs: true
8+
- continue-on-error: true
9+
id: check-deprecated-js-deps
10+
uses: tinovyatkin/action-check-deprecated-js-deps@v1
11+
- env:
12+
DEPRECATED: ${{ steps.check-deprecated-js-deps.outputs.deprecated }}
13+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
14+
RUN_URL: https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}
15+
id: create-deprecation-issue
16+
if: ${{ steps.check-deprecated-js-deps.outputs.deprecated }}
17+
uses: JasonEtco/create-an-issue@v2
18+
with:
19+
filename: .github/DEPRECATED_DEPENDENCIES_ISSUE_TEMPLATE.md
20+
update_existing: true
21+
- if: ${{ !steps.check-deprecated-js-deps.outputs.deprecated &&
22+
steps.create-deprecation-issue.outputs.number }}
23+
uses: peter-evans/close-issue@v1
24+
with:
25+
comment: Auto-closing the issue
26+
issue-number: ${{ steps.create-deprecation-issue.outputs.number }}
27+
name: deprecated-dependencies
28+
on:
29+
schedule:
30+
- cron: 0 5 * * MON

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
.DS_Store
22
/.env.json
3-
/.eslintrc.json
43
/.nyc_output
54
/.test.env.json
65
/coverage

.gitpod.Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ FROM gitpod/workspace-full:latest
44
RUN curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash
55
RUN sudo apt-get install git-lfs
66
RUN git lfs install
7+
RUN echo "\nexport PATH=$(yarn global bin):\$PATH" >> /home/gitpod/.bashrc
8+
RUN yarn global add @babel/core @babel/node
79

810
# Puppeteer dependencies
9-
RUN sudo apt-get update && sudo apt-get install -y libgtk-3-0 libx11-xcb1 libnss3 libxss1 libasound2 libgbm1 libxshmfence1
11+
RUN sudo apt-get update && sudo apt-get install -y libgtk-3-0 libx11-xcb1 libnss3 libxss1 libasound2 libgbm1 libxshmfence1

.renovaterc.json

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,15 @@
22
"extends": [
33
":semanticCommits"
44
],
5+
"ignorePaths": [
6+
".github/workflows/build.yml"
7+
],
58
"labels": [
69
"maintenance"
710
],
8-
"semanticCommitScope": null,
11+
"lockFileMaintenance": {
12+
"enabled": true
13+
},
914
"packageRules": [
1015
{
1116
"packagePatterns": [
@@ -23,7 +28,5 @@
2328
"semanticCommitType": "fix"
2429
}
2530
],
26-
"lockFileMaintenance": {
27-
"enabled": true
28-
}
31+
"semanticCommitScope": null
2932
}

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,11 @@ export default {
9393
Then you can access them via `doc.gitCreatedAt` and `doc.gitUpdatedAt`.
9494

9595
<!-- LICENSE/ -->
96-
## Contributing
96+
## Contribute
9797

98-
Are you missing something or want to contribute? Feel free to file an [issue](https://github.com/dword-design/nuxt-content-git/issues) or [pull request](https://github.com/dword-design/nuxt-content-git/pulls)! ⚙️
98+
Are you missing something or want to contribute? Feel free to file an [issue](https://github.com/dword-design/nuxt-content-git/issues) or a [pull request](https://github.com/dword-design/nuxt-content-git/pulls)! ⚙️
9999

100-
## Support Me
100+
## Support
101101

102102
Hey, I am Sebastian Landwehr, a freelance web developer, and I love developing web apps and open source packages. If you want to support me so that I can keep packages up to date and build more helpful tools, you can donate here:
103103

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"dist"
1212
],
1313
"scripts": {
14-
"check-unknown-files": "base check-unknown-files",
14+
"checkUnknownFiles": "base checkUnknownFiles",
1515
"commit": "base commit",
1616
"dev": "base dev",
1717
"lint": "base lint",

0 commit comments

Comments
 (0)