Skip to content

Commit 9178d40

Browse files
committed
fix: updated node and npm packages
1 parent 9473cff commit 9178d40

File tree

6 files changed

+14884
-3958
lines changed

6 files changed

+14884
-3958
lines changed

.github/workflows/release.yml

+43-28
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,50 @@
1-
name: Release
1+
name: release-main
22

33
on:
44
push:
5-
branches: [main, beta]
5+
branches: [main]
66

77
jobs:
8-
release:
9-
name: Release
10-
runs-on: ubuntu-latest
8+
ci:
9+
runs-on: ${{ matrix.os }}
10+
11+
strategy:
12+
matrix:
13+
os: [ubuntu-latest]
14+
node: [16]
1115

1216
steps:
13-
- name: Checkout
14-
uses: actions/checkout@v2
15-
- name: Use Node.js ${{ matrix.node-version }}
16-
uses: actions/setup-node@v1
17-
with:
18-
node-version: 14.x
19-
- name: Install dependencies
20-
run: npx ci
21-
- name: Install semantic-release extra plugins
22-
run: npm install --save-dev @semantic-release/changelog @semantic-release/git
23-
- name: Lint
24-
run: npm run lint-fix
25-
- name: Typecheck
26-
run: npm run typecheck
27-
- name: Test
28-
run: npm run test:unit-coverage --if-present
29-
- name: Build
30-
run: npm run build
31-
- name: Release
32-
env:
33-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
35-
run: npx semantic-release
17+
- name: Checkout 🛎
18+
uses: actions/checkout@v3
19+
with:
20+
fetch-depth: 0
21+
22+
- name: Setup node env 🏗
23+
uses: actions/setup-node@v3
24+
with:
25+
node-version: ${{ matrix.node }}
26+
check-latest: true
27+
28+
- name: Install dependencies 📦
29+
run: npm install
30+
31+
- name: Install semantic-release extra plugins 📦
32+
run: npm install --save-dev @semantic-release/changelog @semantic-release/git
33+
34+
- name: Run linter 👀
35+
run: npm run lint-fix
36+
37+
- name: Typecheck 👀
38+
run: npm run typecheck
39+
40+
- name: Run tests 🧪
41+
run: npm run test:unit-coverage --if-present
42+
43+
- name: Build
44+
run: npm run build
45+
46+
- name: Release
47+
env:
48+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
49+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
50+
run: npx semantic-release

.husky/commit-msg

+1-11
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,4 @@
11
#!/bin/sh
22
. "$(dirname "$0")/_/husky.sh"
33

4-
export NVM_DIR="$HOME/.nvm/nvm.sh"
5-
. "$(dirname $NVM_DIR)/nvm.sh"
6-
7-
export NVM_DIR="$HOME/.nvm"
8-
a=$(nvm ls | grep 'node')
9-
b=${a#*(-> }
10-
v=${b%%[)| ]*}
11-
12-
export PATH="$NVM_DIR/versions/node/$v/bin:$PATH"
13-
14-
npx --no-install commitlint --edit "$1"
4+
npx --no-install commitlint --edit $1

.husky/pre-commit

+1-11
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,4 @@
11
#!/bin/sh
22
. "$(dirname "$0")/_/husky.sh"
33

4-
export NVM_DIR="$HOME/.nvm/nvm.sh"
5-
. "$(dirname $NVM_DIR)/nvm.sh"
6-
7-
export NVM_DIR="$HOME/.nvm"
8-
a=$(nvm ls | grep 'node')
9-
b=${a#*(-> }
10-
v=${b%%[)| ]*}
11-
12-
export PATH="$NVM_DIR/versions/node/$v/bin:$PATH"
13-
14-
npx lint-staged
4+
npx lint-staged

.nvmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v16

0 commit comments

Comments
 (0)