Skip to content

Commit 3d31dde

Browse files
authored
fix: lock file maintenance (#6)
1 parent 0a944ac commit 3d31dde

File tree

8 files changed

+1482
-2095
lines changed

8 files changed

+1482
-2095
lines changed

.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: 16 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,33 @@
11
jobs:
2-
cancel-existing:
2+
build:
33
if: "!contains(github.event.head_commit.message, '[skip ci]')"
44
runs-on: ubuntu-latest
55
steps:
66
- env:
77
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
88
uses: rokroskar/[email protected]
9-
release:
10-
needs: test
11-
runs-on: ubuntu-latest
12-
steps:
139
- uses: actions/checkout@v2
1410
with:
11+
fetch-depth: 0
1512
lfs: true
13+
ref: ${{ github.event.pull_request.head.repo.full_name == github.repository &&
14+
github.event.pull_request.head.ref || '' }}
1615
- uses: actions/setup-node@v2
1716
with:
1817
node-version: 12
1918
- run: git config --global user.email "[email protected]"
2019
- run: git config --global user.name "GitHub Actions"
2120
- run: yarn --frozen-lockfile
22-
- run: yarn lint
21+
- run: yarn test
22+
- if: failure()
23+
uses: actions/upload-artifact@v2
24+
with:
25+
path: "**/__image_snapshots__/__diff_output__"
26+
- uses: codecov/codecov-action@v1
27+
with:
28+
fail_ci_if_error: true
29+
token: ${{ secrets.CODECOV_TOKEN }}
30+
- run: yarn checkUnknownFiles
2331
- env:
2432
GITHUB_REPOSITORY: ${{ secrets.GITHUB_REPOSITORY }}
2533
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -31,38 +39,9 @@ jobs:
3139
if: github.ref == 'refs/heads/master'
3240
name: Release
3341
run: yarn semantic-release
34-
test:
35-
needs: cancel-existing
36-
runs-on: ${{ matrix.os }}
37-
steps:
38-
- uses: actions/checkout@v2
39-
with:
40-
fetch-depth: 0
41-
lfs: true
42-
- uses: actions/setup-node@v2
43-
with:
44-
node-version: ${{ matrix.node }}
45-
- run: yarn --frozen-lockfile
46-
- run: yarn test
47-
- if: failure()
48-
uses: actions/upload-artifact@v2
49-
with:
50-
path: "**/__image_snapshots__/__diff_output__"
51-
- run: yarn checkUnknownFiles
52-
- if: matrix.os == 'ubuntu-latest' && matrix.node == 12
53-
uses: codecov/codecov-action@v1
54-
with:
55-
fail_ci_if_error: true
56-
token: ${{ secrets.CODECOV_TOKEN }}
57-
strategy:
58-
matrix:
59-
node:
60-
- 10
61-
- 12
62-
os:
63-
- ubuntu-latest
6442
name: build
6543
on:
44+
pull_request: {}
6645
push:
6746
branches:
68-
- "**"
47+
- 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

.gitpod.Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ 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 gitpod-env-per-project @babel/core @babel/node
9+
RUN sudo apt-get install -y graphviz
710

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

.gitpod.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ image:
33
tasks:
44
- before: sudo docker-up
55
name: Docker Deamon
6-
- init: git lfs pull && echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN"
7-
>>~/.npmrc && yarn --frozen-lockfile
6+
- init: eval $(gitpod-env-per-project) && git lfs pull && yarn --frozen-lockfile
87
vscode:
98
extensions:
109
- [email protected]:8jjyZYuYF6yW6nwsAiulrg==

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,11 @@
2222
</a><a href="https://david-dm.org/dword-design/vue-mermaid-string">
2323
<img src="https://img.shields.io/david/dword-design/vue-mermaid-string" alt="Dependency status">
2424
</a><img src="https://img.shields.io/badge/renovate-enabled-brightgreen" alt="Renovate enabled"><br/><a href="https://gitpod.io/#https://github.com/dword-design/vue-mermaid-string">
25-
<img src="https://gitpod.io/button/open-in-gitpod.svg" alt="Open in Gitpod">
25+
<img
26+
src="https://gitpod.io/button/open-in-gitpod.svg"
27+
alt="Open in Gitpod"
28+
height="32"
29+
>
2630
</a><a href="https://www.buymeacoffee.com/dword">
2731
<img
2832
src="https://www.buymeacoffee.com/assets/img/guidelines/download-assets-sm-2.svg"
@@ -67,9 +71,7 @@ Usage is simple, you pass a Mermaid string to the component and you get a visual
6771

6872
```html
6973
<template>
70-
<client-only>
71-
<vue-mermaid-string :value="diagram" />
72-
</client-only>
74+
<vue-mermaid-string :value="diagram" />
7375
</template>
7476
```
7577

@@ -91,7 +93,7 @@ export default {
9193
<!-- LICENSE/ -->
9294
## Contribute
9395

94-
Are you missing something or want to contribute? Feel free to file an [issue](https://github.com/dword-design/vue-mermaid-string/issues) or [pull request](https://github.com/dword-design/vue-mermaid-string/pulls)! ⚙️
96+
Are you missing something or want to contribute? Feel free to file an [issue](https://github.com/dword-design/vue-mermaid-string/issues) or a [pull request](https://github.com/dword-design/vue-mermaid-string/pulls)! ⚙️
9597

9698
## Support
9799

0 commit comments

Comments
 (0)