-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BREAKING CHANGE: drop node 12 support, move to esm
- Loading branch information
1 parent
5340430
commit 99732d3
Showing
10 changed files
with
4,767 additions
and
2,970 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
|
@@ -10,14 +10,14 @@ jobs: | |
needs: test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
with: | ||
lfs: true | ||
ref: ${{ github.event.pull_request.head.repo.full_name == github.repository && | ||
github.event.pull_request.head.ref || '' }} | ||
- uses: actions/setup-node@v2 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 14 | ||
node-version: 16 | ||
- run: git config --global user.email "[email protected]" | ||
- run: git config --global user.name "GitHub Actions" | ||
- run: yarn --frozen-lockfile | ||
|
@@ -38,39 +38,39 @@ jobs: | |
needs: cancel-existing | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
lfs: true | ||
- uses: actions/setup-node@v2 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
- run: yarn --frozen-lockfile | ||
- run: yarn test | ||
- env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: yarn test | ||
- if: failure() | ||
uses: actions/upload-artifact@v2 | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: Image Snapshot Diffs | ||
path: "**/__image_snapshots__/__diff_output__" | ||
- if: matrix.os == 'ubuntu-latest' && matrix.node == 14 | ||
uses: codecov/codecov-action@v2 | ||
- if: matrix.os == 'ubuntu-latest' && matrix.node == 16 | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
fail_ci_if_error: true | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
strategy: | ||
matrix: | ||
exclude: | ||
- node: 12 | ||
include: | ||
- node: 14 | ||
os: ubuntu-latest | ||
- node: 16 | ||
os: ubuntu-latest | ||
- node: 18 | ||
os: ubuntu-latest | ||
- node: 16 | ||
os: macos-latest | ||
- node: 12 | ||
- node: 16 | ||
os: windows-latest | ||
node: | ||
- 12 | ||
- 14 | ||
os: | ||
- macos-latest | ||
- windows-latest | ||
- ubuntu-latest | ||
name: build | ||
on: | ||
pull_request: {} | ||
|
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
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
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 |
---|---|---|
|
@@ -2,12 +2,13 @@ jobs: | |
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
- uses: jaid/[email protected] | ||
with: | ||
approve: false | ||
commitMessage: "fix: write GitHub metadata to package.json [{changes}]" | ||
githubToken: ${{ secrets.GITHUB_TOKEN }} | ||
- uses: gautamkrishnar/keepalive-workflow@v1 | ||
name: sync-metadata | ||
on: | ||
schedule: | ||
|
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
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
npx commitlint --edit "$1" |
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 |
---|---|---|
|
@@ -19,13 +19,16 @@ | |
"funding": "https://github.com/sponsors/dword-design", | ||
"license": "MIT", | ||
"author": "Sebastian Landwehr <[email protected]>", | ||
"type": "module", | ||
"exports": "./dist/index.js", | ||
"main": "dist/index.js", | ||
"files": [ | ||
"dist" | ||
], | ||
"scripts": { | ||
"checkUnknownFiles": "base checkUnknownFiles", | ||
"commit": "base commit", | ||
"depcheck": "base depcheck", | ||
"dev": "base dev", | ||
"lint": "base lint", | ||
"prepare": "base prepare", | ||
|
@@ -37,20 +40,21 @@ | |
"jest-snapshot": "^27.0.0" | ||
}, | ||
"devDependencies": { | ||
"@dword-design/base": "^8.0.0", | ||
"@dword-design/base": "^9.2.3", | ||
"@dword-design/functions": "^4.0.0", | ||
"@dword-design/tester": "^2.0.12", | ||
"@dword-design/tester-plugin-tmp-dir": "^2.1.7", | ||
"depcheck-package-name": "^2.0.0", | ||
"execa": "^5.0.0", | ||
"expect": "^27.0.0", | ||
"expect-mocha-snapshot": "dword-design/expect-mocha-snapshot#fork", | ||
"execa": "^6.1.0", | ||
"expect": "^29.3.1", | ||
"expect-mocha-snapshot": "^2.1.5", | ||
"fs-extra": "^10.0.0", | ||
"jest-image-matcher": "^2.0.0", | ||
"mocha": "^9.0.0", | ||
"sharp": "^0.29.0", | ||
"with-local-tmp-dir": "^4.0.0" | ||
"sharp": "^0.31.3" | ||
}, | ||
"engines": { | ||
"node": ">=12" | ||
"node": ">=14" | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
|
Oops, something went wrong.