Skip to content

Commit 732421e

Browse files
fix: lock file maintenance (#90)
BREAKING CHANGE: drop node 12 support, move to esm
1 parent 17f5032 commit 732421e

File tree

7 files changed

+4244
-2663
lines changed

7 files changed

+4244
-2663
lines changed

.github/workflows/build.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
github.event.pull_request.head.ref || '' }}
1818
- uses: actions/setup-node@v3
1919
with:
20-
node-version: 14
20+
node-version: 16
2121
- run: git config --global user.email "[email protected]"
2222
- run: git config --global user.name "GitHub Actions"
2323
- run: yarn --frozen-lockfile
@@ -46,31 +46,31 @@ jobs:
4646
with:
4747
node-version: ${{ matrix.node }}
4848
- run: yarn --frozen-lockfile
49-
- run: yarn test
49+
- env:
50+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
51+
run: yarn test
5052
- if: failure()
5153
uses: actions/upload-artifact@v3
5254
with:
5355
name: Image Snapshot Diffs
5456
path: "**/__image_snapshots__/__diff_output__"
55-
- if: matrix.os == 'ubuntu-latest' && matrix.node == 14
56-
uses: codecov/codecov-action@v2
57+
- if: matrix.os == 'ubuntu-latest' && matrix.node == 16
58+
uses: codecov/codecov-action@v3
5759
with:
58-
fail_ci_if_error: true
5960
token: ${{ secrets.CODECOV_TOKEN }}
6061
strategy:
6162
matrix:
62-
exclude:
63-
- node: 12
63+
include:
64+
- node: 14
65+
os: ubuntu-latest
66+
- node: 16
67+
os: ubuntu-latest
68+
- node: 18
69+
os: ubuntu-latest
70+
- node: 16
6471
os: macos-latest
65-
- node: 12
72+
- node: 16
6673
os: windows-latest
67-
node:
68-
- 12
69-
- 14
70-
os:
71-
- macos-latest
72-
- windows-latest
73-
- ubuntu-latest
7474
name: build
7575
on:
7676
pull_request: {}

.github/workflows/deprecated-dependencies.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +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
2728
name: deprecated-dependencies
2829
on:
2930
schedule:

.github/workflows/sync-metadata.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +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
1112
name: sync-metadata
1213
on:
1314
schedule:

.gitpod.Dockerfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,17 @@ 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+
8+
# https://www.gitpod.io/docs/languages/javascript
9+
RUN bash -c 'VERSION="16" && source $HOME/.nvm/nvm.sh && nvm install $VERSION && nvm use $VERSION && nvm alias default $VERSION'
10+
RUN echo "nvm use default &>/dev/null" >> ~/.bashrc.d/51-nvm-fix
11+
712
RUN echo "\nexport PATH=$(yarn global bin):\$PATH" >> /home/gitpod/.bashrc
13+
814
RUN yarn global add gitpod-env-per-project @babel/node @babel/core
15+
916
RUN sudo apt-get install -y graphviz
17+
1018
RUN brew install gh
1119

1220
# Puppeteer dependencies

.husky/commit-msg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/sh
2-
. "$(dirname "$0")/_/husky.sh"
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
33

44
npx commitlint --edit "$1"

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
"scripts": {
3535
"checkUnknownFiles": "base checkUnknownFiles",
3636
"commit": "base commit",
37+
"depcheck": "base depcheck",
3738
"dev": "base dev",
3839
"lint": "base lint",
3940
"prepare": "base prepare",
@@ -46,14 +47,14 @@
4647
"babel-plugin-module-resolver": "^4.0.0"
4748
},
4849
"devDependencies": {
49-
"@dword-design/base": "^8.0.0",
50+
"@dword-design/base": "^9.2.3",
5051
"depcheck-package-name": "^2.0.0",
5152
"eslint": "^7.2.0",
5253
"output-files": "^2.0.0",
5354
"with-local-tmp-dir": "^4.0.0"
5455
},
5556
"engines": {
56-
"node": ">=12"
57+
"node": ">=14"
5758
},
5859
"publishConfig": {
5960
"access": "public"

0 commit comments

Comments
 (0)