Skip to content

Commit a5a5244

Browse files
fix: lock file maintenance (#169)
1 parent fdfa36f commit a5a5244

24 files changed

+8842
-11373
lines changed

.devcontainer/devcontainer.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
11
{
2-
"features": {
3-
"ghcr.io/devcontainers/features/docker-in-docker:2": {}
4-
},
5-
"image": "mcr.microsoft.com/devcontainers/javascript-node:1-20",
6-
"updateContentCommand": "yarn --frozen-lockfile"
2+
"postCreateCommand": "pnpm install --frozen-lockfile"
73
}

.eslintrc.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

.github/workflows/build.yml

Lines changed: 18 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
1+
concurrency:
2+
cancel-in-progress: true
3+
group: ${{ github.workflow }}-${{ github.ref }}
14
jobs:
2-
cancel-existing:
3-
if: "!contains(github.event.head_commit.message, '[skip ci]')"
4-
runs-on: ubuntu-latest
5-
steps:
6-
- env:
7-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8-
uses: rokroskar/[email protected]
95
release:
106
needs: test
117
runs-on: ubuntu-latest
@@ -18,42 +14,44 @@ jobs:
1814
- uses: actions/setup-node@v4
1915
with:
2016
node-version: 20
17+
- run: corepack enable
2118
- run: git config --global user.email "[email protected]"
2219
- run: git config --global user.name "GitHub Actions"
23-
- run: yarn --frozen-lockfile
24-
- run: yarn checkUnknownFiles
25-
- run: yarn lint
20+
- run: pnpm install --frozen-lockfile
21+
- run: pnpm checkUnknownFiles
22+
- run: pnpm lint
2623
- env:
2724
GITHUB_REPOSITORY: ${{ secrets.GITHUB_REPOSITORY }}
2825
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2926
name: Push changed files
30-
run: yarn dw-ci push-changed-files
27+
run: pnpm dw-ci push-changed-files
3128
- env:
3229
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3330
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
3431
if: github.ref == 'refs/heads/master'
3532
name: Release
36-
run: yarn semantic-release
33+
run: pnpm semantic-release
3734
test:
38-
needs: cancel-existing
3935
runs-on: ${{ matrix.os }}
4036
steps:
4137
- uses: actions/checkout@v4
4238
with:
43-
fetch-depth: 0
4439
lfs: true
4540
- uses: actions/setup-node@v4
4641
with:
42+
check-latest: true
4743
node-version: ${{ matrix.node }}
48-
- run: yarn --frozen-lockfile
44+
- run: corepack enable
45+
- run: pnpm install --frozen-lockfile
4946
- env:
5047
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
51-
run: yarn test
52-
- if: failure()
53-
uses: actions/upload-artifact@v3
48+
run: pnpm test
49+
- if: always()
50+
uses: actions/upload-artifact@v4
5451
with:
55-
name: Image Snapshot Diffs
56-
path: "**/__image_snapshots__/__diff_output__"
52+
if-no-files-found: ignore
53+
name: Images from tests
54+
path: test-results/*/**
5755
- if: matrix.os == 'ubuntu-latest' && matrix.node == 20
5856
uses: codecov/codecov-action@v3
5957
with:

.github/workflows/deprecated-dependencies.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
with:
2525
comment: Auto-closing the issue
2626
issue-number: ${{ steps.create-deprecation-issue.outputs.number }}
27-
- uses: gautamkrishnar/keepalive-workflow@v1
27+
- uses: liskin/gh-workflow-keepalive@v1
2828
name: deprecated-dependencies
2929
on:
3030
schedule:

.github/workflows/sync-metadata.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
approve: false
99
commitMessage: "fix: write GitHub metadata to package.json [{changes}]"
1010
githubToken: ${{ secrets.GITHUB_TOKEN }}
11-
- uses: gautamkrishnar/keepalive-workflow@v1
11+
- uses: liskin/gh-workflow-keepalive@v1
1212
name: sync-metadata
1313
on:
1414
schedule:

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@
55
/coverage
66
/dist
77
/node_modules
8+
/test-results

.gitpod.Dockerfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ RUN git lfs install
1010
RUN bash -c 'source $HOME/.nvm/nvm.sh && nvm install 20'
1111
RUN echo "nvm use default &>/dev/null" >> ~/.bashrc.d/51-nvm-fix
1212

13-
RUN echo "\nexport PATH=$(yarn global bin):\$PATH" >> /home/gitpod/.bashrc
14-
1513
RUN yarn global add gitpod-env-per-project @babel/node @babel/core
1614

1715
RUN sudo apt-get install -y graphviz

.gitpod.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,24 @@ image:
22
file: .gitpod.Dockerfile
33
tasks:
44
- before: >-
5+
echo "corepack enable" >> /home/gitpod/.bashrc
6+
7+
echo "export COREPACK_ENABLE_DOWNLOAD_PROMPT=0" >> /home/gitpod/.bashrc
8+
9+
gitpod-env-per-project >> /home/gitpod/.bashrc
10+
511
echo "export
612
PUPPETEER_CACHE_DIR=/workspace/make-cli/node_modules/.cache/puppeteer" >>
713
/home/gitpod/.bashrc
814
915
echo "export PLAYWRIGHT_BROWSERS_PATH=0" >> /home/gitpod/.bashrc
1016
11-
gitpod-env-per-project >> /home/gitpod/.bashrc && source
12-
/home/gitpod/.bashrc
17+
source /home/gitpod/.bashrc
1318
init: |-
1419
git config --global user.name "Sebastian Landwehr"
1520
git config diff.lfs.textconv cat
1621
git lfs pull
17-
yarn --frozen-lockfile
22+
pnpm install --frozen-lockfile
1823
vscode:
1924
extensions:
2025
- https://sebastianlandwehr.com/vscode-extensions/karlito40.fix-irregular-whitespace-0.1.1.vsix

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node-linker=hoisted

.renovaterc.json

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,23 @@
2222
{
2323
"datasourceTemplate": "github-tags",
2424
"fileMatch": [
25-
"\\.js$"
25+
"\\.ts$"
2626
],
2727
"matchStrings": [
28-
"(^|\\s)gitHubAction`(?<depName>.*?)@v(?<currentValue>.*?)`"
28+
"(^|[^\\w])gitHubAction`(?<depName>.*?)@v(?<currentValue>.*?)`"
2929
],
3030
"versioningTemplate": "npm"
31+
},
32+
{
33+
"datasourceTemplate": "node-version",
34+
"depNameTemplate": "node",
35+
"fileMatch": [
36+
"\\.ts$"
37+
],
38+
"matchStrings": [
39+
"(^|[^\\w])nodejsVersion`(?<currentValue>.*?)`"
40+
],
41+
"versioningTemplate": "node"
3142
}
3243
],
3344
"semanticCommitScope": null

0 commit comments

Comments
 (0)