-
Notifications
You must be signed in to change notification settings - Fork 15
50 lines (47 loc) · 1.36 KB
/
ci.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
48
49
50
name: ci
on:
pull_request:
paths-ignore:
- "*.md"
push:
branches:
- master
paths-ignore:
- "*.md"
jobs:
build_and_test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16]
steps:
- uses: actions/checkout@v1
- name: use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: install
run: npm install --legacy-peer-deps
- name: build
run: npm run dist:build
- name: test
run: npm run test
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: rx-query
path: |
package.json
README.md
dist
- name: Release
if: github.repository == 'timdeschryver/rx-query' && github.ref == 'refs/heads/master' && matrix.node-version == 16
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release
# - name: deploy storybook to GH pages
# if: github.repository == 'timdeschryver/rx-query' && github.ref == 'refs/heads/master' && matrix.node-version == 16
# run: npm run deploy-storybook -- --ci
# env:
# GH_TOKEN: ${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}