-
Notifications
You must be signed in to change notification settings - Fork 11
47 lines (36 loc) · 1.11 KB
/
publish.yml
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
42
43
44
45
46
47
name: publish
on:
release:
types: [created]
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '14.x'
registry-url: 'https://registry.npmjs.org'
- name: Install Docker
run: |
docker run --name dockerhost --cap-add=NET_ADMIN --cap-add=NET_RAW -d qoomon/docker-host
docker run --privileged --name e2e-chrome --link dockerhost -p 9222:9222 -d vorobeez/puppeteer-e2e-chrome:74.0.3729.169-1
curl -sL https://raw.githubusercontent.com/travis-ci/artifacts/master/install | bash
- name: Install Dependencies
run: yarn --frozen-lockfile
- name: Build packages
run: yarn build
- name: Run linter
run: yarn eslint
- name: Run flow
run: yarn flow
- name: Run tests
run: |
yarn storybook &
sleep 40
yarn e2e:ci
killall5 node || echo "Server is stopped"
- name: Publish
run: npm publish