Skip to content

Commit 9522109

Browse files
committed
fix: misc errors
1 parent 5b98bd8 commit 9522109

6 files changed

Lines changed: 7 additions & 8 deletions

File tree

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
runs-on: ubuntu-latest
1818
steps:
1919
- uses: actions/checkout@master
20-
- uses: gaurav-nelson/github-action-markdown-link-check@master
20+
- uses: gaurav-nelson/github-action-markdown-link-check@v1
2121
dogfooding:
2222
runs-on: ubuntu-latest
2323
steps:

Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
# This version of Node.js or later is required for top-level await.
2-
FROM node:14.3.0
1+
FROM node:16.11.1
32

43
# When running as a GitHub Action, the WORKDIR is controlled by GitHub.
54
# Furthermore, they recommend NOT setting it in the Dockerfile, which makes running locally difficult.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
</a>
2929
</p>
3030

31-
> Maybe most of your coding happens on another version control host, like GitLab or Bitbucket. Maybe your company uses GitHub Enterprise but hasn't enabled [unified contributions](https://help.github.com/en/enterprise/2.20/admin/installation/enabling-unified-contributions-between-github-enterprise-server-and-githubcom). Maybe you're looking for a new software development job and are worried that recruiters will prejudge you by your scarce contribution graph.
31+
> Maybe most of your coding happens on another version control host, like GitLab or Bitbucket. Maybe your company uses GitHub Enterprise but hasn't enabled [unified contributions](https://docs.github.com/en/enterprise-server@latest/admin/configuration/configuring-github-connect/enabling-unified-contributions-for-your-enterprise). Maybe you're looking for a new software development job and are worried that recruiters will prejudge you by your scarce contribution graph.
3232
> Or maybe you have [other reasons](https://twitter.com/jacobmparis/status/1265740598277025792). Whatever the case may be, you've come to the right place.
3333
3434
## Quick start without leaving your browser ⚡

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"test": "node --experimental-vm-modules node_modules/jest/bin/jest"
77
},
88
"engines": {
9-
"node": ">=14.3.0"
9+
"node": ">=16.11.1"
1010
},
1111
"dependencies": {
1212
"auto-parse": "^1.8.0",

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ import fromUnixTime from 'date-fns/fp/fromUnixTime';
55
import subDays from 'date-fns/fp/subDays';
66
import isWeekend from 'date-fns/fp/isWeekend';
77
import fs from 'fs/promises';
8-
import git from 'simple-git/promise';
8+
import git from 'simple-git';
99
import {getRandomInt} from './random';
1010

1111
const env = autoParse({
12-
GIT_BRANCH: process.env.GIT_BRANCH || process.env.GITHUB_REF.replace(/^refs\/heads\//, ''),
12+
GIT_BRANCH: process.env.GIT_BRANCH || process.env.GITHUB_REF?.replace(/^refs\/heads\//, ''),
1313
ORIGIN_TIMESTAMP: process.env.ORIGIN_TIMESTAMP || getUnixTime(new Date()),
1414
...dotenv.load({errorOnMissing: true, includeProcessEnv: true}),
1515
});

0 commit comments

Comments
 (0)