Skip to content

Commit ac3f1b9

Browse files
authored
chore: drop support for Node.js 12 (#414)
1 parent 33feaf8 commit ac3f1b9

File tree

4 files changed

+29
-41
lines changed

4 files changed

+29
-41
lines changed

.github/workflows/test-and-release.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
runs-on: ubuntu-latest
2424
strategy:
2525
matrix:
26-
node-version: [14.x]
26+
node-version: [16.x]
2727

2828
steps:
2929
- uses: actions/checkout@v3
@@ -123,7 +123,7 @@ jobs:
123123
runs-on: ubuntu-latest
124124
strategy:
125125
matrix:
126-
node-version: [14.x]
126+
node-version: [16.x]
127127

128128
steps:
129129
- name: Checkout code
@@ -141,12 +141,12 @@ jobs:
141141
run: |
142142
VERSION="${{ github.ref }}"
143143
VERSION=${VERSION##*/v}
144-
echo "::set-output name=VERSION::$VERSION"
144+
echo "VERSION=$VERSION" >> $GITHUB_OUTPUT
145+
EOF=$(od -An -N6 -x /dev/urandom | tr -d ' ')
145146
BODY=$(git show -s --format=%b)
146-
BODY="${BODY//'%'/'%25'}"
147-
BODY="${BODY//$'\n'/'%0A'}"
148-
BODY="${BODY//$'\r'/'%0D'}"
149-
echo "::set-output name=BODY::$BODY"
147+
echo "BODY<<$EOF" >> $GITHUB_OUTPUT
148+
echo "$BODY" >> $GITHUB_OUTPUT
149+
echo "$EOF" >> $GITHUB_OUTPUT
150150
151151
- name: Install dependencies
152152
run: npm ci
@@ -161,12 +161,12 @@ jobs:
161161
npm publish
162162
163163
- name: Create Github Release
164-
uses: actions/create-release@v1
164+
uses: softprops/action-gh-release@v1
165165
env:
166166
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
167167
with:
168168
tag_name: ${{ github.ref }}
169-
release_name: Release v${{ steps.extract_release.outputs.VERSION }}
169+
name: Release v${{ steps.extract_release.outputs.VERSION }}
170170
draft: false
171171
# Prerelease versions create prereleases on Github
172172
prerelease: ${{ contains(steps.extract_release.outputs.VERSION, '-') }}

package-lock.json

Lines changed: 15 additions & 27 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"access": "public"
1616
},
1717
"engines": {
18-
"node": ">=12"
18+
"node": ">=14"
1919
},
2020
"keywords": [
2121
"jsonl",
@@ -37,10 +37,10 @@
3737
"@alcalzone/release-script-plugin-license": "~3.5.9",
3838
"@commitlint/cli": "^17.3.0",
3939
"@commitlint/config-conventional": "^17.4.4",
40-
"@tsconfig/node12": "^1.0.11",
40+
"@tsconfig/node14": "^1.0.3",
4141
"@types/fs-extra": "^9.0.13",
4242
"@types/mock-fs": "^4.13.1",
43-
"@types/node": "^12.20.39",
43+
"@types/node": "^14.18.37",
4444
"@types/proper-lockfile": "^4.1.2",
4545
"@typescript-eslint/eslint-plugin": "^5.45.0",
4646
"@typescript-eslint/parser": "^5.54.0",

tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"extends": "@tsconfig/node12/tsconfig.json",
2+
"extends": "@tsconfig/node14/tsconfig.json",
33
"compilerOptions": {
44
// What to output
55
"noEmit": true,
@@ -26,4 +26,4 @@
2626
"build/**",
2727
"node_modules/**"
2828
]
29-
}
29+
}

0 commit comments

Comments
 (0)