File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on :
4+ push :
5+ tags :
6+ - ' *'
7+ pull_request :
8+
9+ jobs :
10+ build :
11+ runs-on : ubuntu-latest
12+ strategy :
13+ matrix :
14+ node-version : [18, 20]
15+
16+ steps :
17+ - uses : actions/checkout@v4
18+
19+ - name : Use Node.js ${{ matrix.node-version }}
20+ uses : actions/setup-node@v4
21+ with :
22+ node-version : ${{ matrix.node-version }}
23+ cache : ' yarn'
24+
25+ - name : Install dependencies
26+ run : yarn install
27+
28+ - name : Lint
29+ run : yarn run lint
30+
31+ - name : Test with coverage
32+ run : yarn run test --coverage
33+
34+ - name : Build
35+ run : yarn build
36+
37+ deploy :
38+ runs-on : ubuntu-latest
39+ needs : build
40+ if : startsWith(github.ref, 'refs/tags/')
41+ steps :
42+ - uses : actions/checkout@v4
43+
44+ - name : Use Node.js 20
45+ uses : actions/setup-node@v4
46+ with :
47+ node-version : 20
48+ registry-url : ' https://registry.npmjs.org'
49+
50+ - name : Install dependencies
51+ run : yarn install
52+
53+ - name : Detect tag type (RELEASE or BETA)
54+ id : tag_check
55+ run : |
56+ TAG_NAME="${GITHUB_REF##*/}"
57+
58+ if [[ "$TAG_NAME" == *"-BETA"* ]]; then
59+ echo "Detected BETA release"
60+ echo "tag_type=BETA" >> $GITHUB_OUTPUT
61+ else
62+ echo "Detected RELEASE"
63+ echo "tag_type=RELEASE" >> $GITHUB_OUTPUT
64+ fi
65+
66+ - name : Publish RELEASE
67+ if : steps.tag_check.outputs.tag_type == 'RELEASE'
68+ run : npm publish
69+ env :
70+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
71+
72+ - name : Publish BETA
73+ if : steps.tag_check.outputs.tag_type == 'BETA'
74+ run : npm publish --tag next
75+ env :
76+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
77+
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11[ ![ ] ( http://slack.xcomponent.com/badge.svg )] ( http://slack.xcomponent.com/ )
22[ ![ npm] ( https://img.shields.io/npm/v/reactivexcomponent.js.svg )] ( https://www.npmjs.com/package/reactivexcomponent.js )
33[ ![ npm] ( https://img.shields.io/npm/dt/reactivexcomponent.js.svg )] ( https://www.npmjs.com/package/reactivexcomponent.js )
4- [ ![ Build Status] ( https://travis-ci.org/xcomponent/ReactiveXComponent.js.svg?branch=master )] ( https://travis-ci.org/xcomponent/ReactiveXComponent.js )
54[ ![ TypeScript] ( https://badges.frapsoft.com/typescript/love/typescript.png?v=101 )] ( https://github.com/ellerbrock/typescript-badges/ )
6-
5+ ![ CI ] ( https://github.com/xcomponent/ReactiveXComponent.js/actions/workflows/ci.yml/badge.svg )
76
87## Reactive XComponent API
98Reactive XComponent is a javaScript client API that allows you to interact with microservices generated with XComponent software.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments