-
Notifications
You must be signed in to change notification settings - Fork 4
41 lines (30 loc) · 912 Bytes
/
build.yml
File metadata and controls
41 lines (30 loc) · 912 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Build
on:
push:
branches: [ master ]
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
jobs:
build-test-release:
name: Build, test and release ("latest" tag)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2-beta
with:
node-version: '12'
- name: Create ".npmrc" file in the project root
run: echo "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" > .npmrc
- name: Install dependencies
run: yarn --frozen-lockfile
- name: Check dependencies
run: yarn adio
- name: Build packages
run: yarn build
- name: Set git email
run: git config --global user.email "info@webiny.com"
- name: Set git username
run: git config --global user.name "webiny"
- name: Release
run: npx semantic-release