Skip to content

Commit f1bf837

Browse files
Update release.yml
1 parent 256b4d1 commit f1bf837

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

.github/workflows/release.yml

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,24 @@ on:
44
branches:
55
- master
66
jobs:
7-
release:
8-
name: Release
7+
build-test-publish:
8+
name: Build and Test
99
runs-on: ubuntu-latest
1010
steps:
11-
- name: Checkout
12-
uses: actions/checkout@v2
11+
- uses: actions/checkout@v3
12+
- uses: actions/setup-node@v3
1313
with:
14-
fetch-depth: 0
15-
- name: Setup Node.js
16-
uses: actions/setup-node@v2
17-
with:
18-
node-version: 'lts/*'
14+
node-version: '16'
1915
- name: Install dependencies
20-
run: npm ci
16+
run: npm ci --legacy-peer-deps #TODO: remove this flag once we get rid of tslint
17+
- name: Prettier check
18+
run: npm run check:prettier
19+
- name: Check linting
20+
run: npm run check:code
21+
- name: Build library
22+
run: npm run build
2123
- name: Release
2224
env:
2325
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2426
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
25-
run: npx semantic-release
27+
run: npm run semantic-release

0 commit comments

Comments
 (0)