Skip to content

Commit 5e617be

Browse files
committed
feat(build): updated workflows
1 parent 7fe86de commit 5e617be

File tree

2 files changed

+14
-13
lines changed

2 files changed

+14
-13
lines changed

.github/workflows/node.js.yml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,16 @@ jobs:
1313
build:
1414
runs-on: ubuntu-latest
1515

16-
strategy:
17-
matrix:
18-
# node-version: [12.x, 14.x, 16.x]
19-
node-version: [14.x]
20-
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
21-
2216
steps:
2317
- uses: actions/checkout@v3
24-
- name: Use Node.js ${{ matrix.node-version }}
18+
- name: Setup Node.js
2519
uses: actions/setup-node@v3
2620
with:
27-
node-version: ${{ matrix.node-version }}
21+
node-version: '14.x'
2822
cache: 'npm'
29-
- run: yarn install --frozen-lockfile
30-
- run: npm run build --if-present
31-
- run: npm test
23+
- name: Install dependencies
24+
run: yarn install --frozen-lockfile
25+
- name: Build package
26+
run: npm run build --if-present
27+
- name: Run tests
28+
run: npm test

.github/workflows/release.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ name: Release
55

66
on:
77
push:
8-
branches: [ "master", "main", "next", "next-major", "beta", "alpha" ]
8+
branches: ['master', 'main', 'next', 'next-major', 'beta', 'alpha']
99

1010
jobs:
1111
release:
@@ -21,7 +21,11 @@ jobs:
2121
with:
2222
node-version: '14.x'
2323
- name: Install dependencies
24-
run: npm ci
24+
run: yarn install --frozen-lockfile
25+
- name: Build package
26+
run: npm run build --if-present
27+
- name: Run tests
28+
run: npm test
2529
- name: Release
2630
env:
2731
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)