Skip to content

Commit 92397d4

Browse files
authored
refactor: update for ts5.2+ (#1)
1 parent 2923e7e commit 92397d4

File tree

5 files changed

+3995
-3434
lines changed

5 files changed

+3995
-3434
lines changed

.eslintrc.js

-1
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,6 @@ module.exports = {
181181
],
182182
'jsdoc/check-alignment': 'error',
183183
'jsdoc/check-indentation': 'error',
184-
'jsdoc/newline-after-description': 'error',
185184
'linebreak-style': ['error', 'unix'],
186185
'max-classes-per-file': ['error', 1],
187186
'max-len': [

.github/workflows/release.yml

+15-13
Original file line numberDiff line numberDiff line change
@@ -7,33 +7,35 @@ on:
77
jobs:
88
release:
99
name: Release
10-
runs-on: ubuntu-18.04
10+
runs-on: ubuntu-latest
1111
if: "!contains(github.event.head_commit.message, 'skip ci')"
1212
env:
1313
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1414
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
1515
steps:
1616
- name: Checkout
17-
uses: actions/checkout@v2
18-
with: { fetch-depth: 0 }
17+
uses: actions/checkout@v3
18+
with:
19+
fetch-depth: 0
1920
- name: Setup Node.js
20-
uses: actions/setup-node@v1
21+
uses: actions/setup-node@v3
2122
with:
22-
node-version: 12
23-
- name: Set Branch
24-
id: branch
25-
run: |
26-
BNAME="$(echo -n ${GITHUB_REF##*/} | sed 's#/#-#g' | tr '[:upper:]' '[:lower:]')"
27-
BID="$GITHUB_RUN_NUMBER-$(date +%s)"
28-
echo ::set-env name=BRANCH_NAME::$BNAME
29-
echo ::set-env name=APP_BUILD::$BID-$GITHUB_SHA
30-
echo ::set-env name=BUILD_ID::$BID
23+
node-version: 18
24+
cache: 'npm'
3125
- name: Setup GIT
3226
run: |
3327
git config --local user.email "[email protected]"
3428
git config --local user.name "GitHub Action"
3529
mkdir -p ~/.ssh
3630
ssh-keyscan github.com > ~/.ssh/known_hosts
31+
- name: Set Branch
32+
id: branch
33+
run: |
34+
BNAME="$(echo -n ${GITHUB_REF##*/} | sed 's#/#-#g' | tr '[:upper:]' '[:lower:]')"
35+
BID="$GITHUB_RUN_NUMBER-$(date +%s)"
36+
echo "BRANCH_NAME=$BNAME" >> $GITHUB_ENV
37+
echo "APP_BUILD=$BID-$GITHUB_SHA" >> $GITHUB_ENV
38+
echo "BUILD_ID=$BID" >> $GITHUB_ENV
3739
- name: Setup NPM
3840
run: |
3941
echo "Setup NPM"

0 commit comments

Comments
 (0)