Skip to content

Commit be57b09

Browse files
committed
infra: added FUNDING.yml and a FUNDING.yml template; modified configuration.
1 parent 914df9e commit be57b09

File tree

6 files changed

+26
-15
lines changed

6 files changed

+26
-15
lines changed

.eslintrc.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,7 @@
2121
"eslint-plugin-jest"
2222
],
2323
"rules": {
24+
"@typescript-eslint/no-var-requires": "off",
25+
"no-console": "warn"
2426
}
2527
}

.github/FUNDING-rename.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Delete my FUNDING.yml and rename this file to
2+
# FUNDING.yml. Then go into it and replace
3+
# [your username] with your GitHub username.
4+
5+
github: [your username]
6+
7+
# Uncomment if using Open Collective
8+
# open_collective: [your-open-collective-path]
9+
# Open Collective path example: https://opencollective.com/[your-open-collective-path]

.github/FUNDING.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
github: santi100a

.github/workflows/ci.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ on:
99

1010
jobs:
1111
test:
12+
outputs:
13+
rel: ${{ steps.commit.outputs.rel }}
1214
runs-on: ubuntu-latest
1315
steps:
1416
- uses: actions/checkout@v3
@@ -24,12 +26,12 @@ jobs:
2426
STRING=$(echo $COMMIT_MSG | (grep -E "infra:|docs:|lint:|code-style:" || echo ''))
2527
2628
if [ -z "$STRING" ]; then
27-
echo "IS_RELEASE_COMMIT=1" >> $GITHUB_OUTPUT
29+
echo "rel=1" >> $GITHUB_OUTPUT
2830
echo "IS_RELEASE_COMMIT=1" >> $GITHUB_ENV
2931
else
3032
echo "This commit will NOT trigger a release."
3133
32-
echo "IS_RELEASE_COMMIT=0" >> $GITHUB_OUTPUT
34+
echo "rel=0" >> $GITHUB_OUTPUT
3335
echo "IS_RELEASE_COMMIT=0" >> $GITHUB_ENV
3436
fi
3537
@@ -43,21 +45,18 @@ jobs:
4345
run: yarn validate-package-json
4446

4547
- name: Run ESLint
46-
if: env.IS_RELEASE_COMMIT == '1'
4748
run: yarn lint
4849

4950
- name: Build source code
50-
if: env.IS_RELEASE_COMMIT == '1'
5151
run: yarn build
5252

5353
- name: Run test suites
54-
if: env.IS_RELEASE_COMMIT == '1'
5554
run: yarn test
5655
release:
57-
if: needs.test.outputs.IS_RELEASE_COMMIT == '1'
56+
needs: test
57+
if: needs.test.outputs.rel == 1 || needs.test.outputs.rel == '1'
5858
permissions:
5959
contents: write
60-
needs: test
6160
runs-on: ubuntu-latest
6261
steps:
6362
- name: Checkout code

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
"typings": "cjs/index.d.ts",
77
"license": "MIT",
88
"devDependencies": {
9-
"@types/jest": "^29.4.1",
10-
"@typescript-eslint/eslint-plugin": "^5.59.0",
11-
"@typescript-eslint/parser": "^5.59.0",
9+
"@types/jest": "29.5.1",
10+
"@typescript-eslint/eslint-plugin": "5.59.7",
11+
"@typescript-eslint/parser": "5.59.7",
1212
"eslint": "^8.39.0",
1313
"eslint-plugin-jest": "^27.2.1",
1414
"jest": "^29.4.3",
15-
"prettier": "^2.8.7",
15+
"prettier": "2.8.8",
1616
"remark-cli": "^11.0.0",
1717
"remark-gfm": "^3.0.1",
1818
"remark-validate-links": "^12.1.1",

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -758,7 +758,7 @@
758758
dependencies:
759759
"@types/istanbul-lib-report" "*"
760760

761-
"@types/jest@^29.4.1":
761+
"@types/jest@29.5.1":
762762
version "29.5.1"
763763
resolved "https://registry.yarnpkg.com/@types/jest/-/jest-29.5.1.tgz#83c818aa9a87da27d6da85d3378e5a34d2f31a47"
764764
integrity sha512-tEuVcHrpaixS36w7hpsfLBLpjtMRJUE09/MHXn923LOVojDwyC14cWcfc0rDs0VEfUyYmt/+iX1kxxp+gZMcaQ==
@@ -835,7 +835,7 @@
835835
dependencies:
836836
"@types/yargs-parser" "*"
837837

838-
"@typescript-eslint/eslint-plugin@^5.59.0":
838+
"@typescript-eslint/[email protected].7":
839839
version "5.59.7"
840840
resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.59.7.tgz#e470af414f05ecfdc05a23e9ce6ec8f91db56fe2"
841841
integrity sha512-BL+jYxUFIbuYwy+4fF86k5vdT9lT0CNJ6HtwrIvGh0PhH8s0yy5rjaKH2fDCrz5ITHy07WCzVGNvAmjJh4IJFA==
@@ -851,7 +851,7 @@
851851
semver "^7.3.7"
852852
tsutils "^3.21.0"
853853

854-
"@typescript-eslint/parser@^5.59.0":
854+
"@typescript-eslint/[email protected].7":
855855
version "5.59.7"
856856
resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-5.59.7.tgz#02682554d7c1028b89aa44a48bf598db33048caa"
857857
integrity sha512-VhpsIEuq/8i5SF+mPg9jSdIwgMBBp0z9XqjiEay+81PYLJuroN+ET1hM5IhkiYMJd9MkTz8iJLt7aaGAgzWUbQ==
@@ -3172,7 +3172,7 @@ prelude-ls@^1.2.1:
31723172
resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.2.1.tgz#debc6489d7a6e6b0e7611888cec880337d316396"
31733173
integrity sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==
31743174

3175-
prettier@^2.8.7:
3175+
31763176
version "2.8.8"
31773177
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.8.8.tgz#e8c5d7e98a4305ffe3de2e1fc4aca1a71c28b1da"
31783178
integrity sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==

0 commit comments

Comments
 (0)