Skip to content

Commit ad6d535

Browse files
committed
build: update action with npm
1 parent 452d6df commit ad6d535

File tree

3 files changed

+12
-9
lines changed

3 files changed

+12
-9
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,21 +20,23 @@ jobs:
2020
- name: Setup Node.js
2121
uses: actions/setup-node@v3
2222
with:
23-
node-version: "12"
23+
node-version: "16"
2424
- name: Install dependencies
25-
run: yarn install
25+
run: npm ci
2626
- name: "Unit tests"
27-
run: yarn test
27+
run: npm test
28+
- name: "Reset changes from integration unit tests"
29+
run: git reset --hard HEAD
2830
- name: "Build"
29-
run: yarn build
31+
run: npm run build
3032
- name: "Type check"
31-
run: yarn check-types
33+
run: npm run check-types
3234
- name: "Code formatting check"
33-
run: git reset --hard HEAD && yarn check-formatting
35+
run: npm run check-formatting
3436
- name: "Commit formatting check"
3537
uses: wagoid/commitlint-github-action@v5
3638
- name: Release
3739
env:
3840
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3941
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
40-
run: yarn semantic-release
42+
run: npm run semantic-release

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
12.18.3
1+
16

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@
2828
"prepare": "npm run build && husky install",
2929
"check-types": "tsc --noEmit",
3030
"check-formatting": "prettier --check '**/*.{js,json,css,md,scss,tsx,ts}'",
31-
"commit": "commit"
31+
"commit": "commit",
32+
"semantic-release": "semantic-release"
3233
},
3334
"files": [
3435
"dist/lib"

0 commit comments

Comments
 (0)