@thecb/components 3.0.0 → 3.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/disabled-workflows/publish-update.yml +73 -0
- package/dist/index.cjs.js +176 -226
- package/package.json +1 -1
- package/src/components/atoms/breadcrumb/Breadcrumb.js +0 -2
- package/src/components/atoms/button-with-action/ButtonWithAction.js +6 -1
- package/src/components/atoms/layouts/Box.js +0 -2
- package/src/components/atoms/layouts/Box.styled.js +1 -17
- package/src/components/atoms/layouts/Motion.styled.js +2 -5
- package/src/components/atoms/link/ExternalLink.js +3 -3
- package/src/components/atoms/link/ExternalLink.styled.js +9 -2
- package/src/components/atoms/link/InternalLink.js +2 -4
- package/src/components/atoms/link/InternalLink.styled.js +13 -15
- package/src/components/atoms/link/Link.theme.js +7 -1
- package/src/components/atoms/placeholder/Placeholder.js +2 -1
- package/src/components/atoms/text/Text.js +0 -2
- package/src/components/atoms/text/Text.styled.js +2 -8
- package/src/components/atoms/toggle-switch/ToggleSwitch.js +1 -1
- package/src/components/molecules/account-and-routing-modal/AccountAndRoutingModal.js +0 -1
- package/src/components/molecules/collapsible-section/CollapsibleSection.js +1 -1
- package/src/components/molecules/radio-section/RadioSection.js +1 -1
- package/src/components/molecules/tab-sidebar/TabSidebar.js +10 -5
- package/src/components/molecules/terms-and-conditions-modal/TermsAndConditionsModal.js +0 -1
- package/.github/workflows/publish-update.yml +0 -73
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
name: Publish and Update
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
release:
|
|
5
|
+
types: [published]
|
|
6
|
+
|
|
7
|
+
jobs:
|
|
8
|
+
build:
|
|
9
|
+
name: Build
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
|
|
12
|
+
steps:
|
|
13
|
+
- name: Checkout repository
|
|
14
|
+
uses: actions/checkout@v2
|
|
15
|
+
with:
|
|
16
|
+
ref: master
|
|
17
|
+
|
|
18
|
+
- name: Set up Node.js
|
|
19
|
+
uses: actions/setup-node@v1.2.0
|
|
20
|
+
with:
|
|
21
|
+
node-version: "10.x"
|
|
22
|
+
|
|
23
|
+
- name: Install dependencies
|
|
24
|
+
run: yarn install --silent
|
|
25
|
+
|
|
26
|
+
- name: Compile build
|
|
27
|
+
run: yarn build --silent
|
|
28
|
+
|
|
29
|
+
- name: Commit changes
|
|
30
|
+
uses: EndBug/add-and-commit@v2.1.0
|
|
31
|
+
with:
|
|
32
|
+
author_name: CB Feeps
|
|
33
|
+
author_email: feeps@thecitybase.com
|
|
34
|
+
message: "[auto] Update dist"
|
|
35
|
+
path: dist
|
|
36
|
+
pattern: "*.*"
|
|
37
|
+
force: true
|
|
38
|
+
ref: deploy
|
|
39
|
+
env:
|
|
40
|
+
GITHUB_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }}
|
|
41
|
+
|
|
42
|
+
publish:
|
|
43
|
+
name: Publish to NPM Registry
|
|
44
|
+
runs-on: ubuntu-latest
|
|
45
|
+
needs: build
|
|
46
|
+
|
|
47
|
+
steps:
|
|
48
|
+
- name: Checkout repository
|
|
49
|
+
uses: actions/checkout@v2
|
|
50
|
+
with:
|
|
51
|
+
ref: deploy
|
|
52
|
+
|
|
53
|
+
- name: Set up Node.js for NPM
|
|
54
|
+
if: steps.check.outputs.changed == 'true'
|
|
55
|
+
uses: actions/setup-node@v1.2.0
|
|
56
|
+
with:
|
|
57
|
+
node-version: "10.x"
|
|
58
|
+
registry-url: "https://registry.npmjs.org"
|
|
59
|
+
scope: "@thecb"
|
|
60
|
+
|
|
61
|
+
- name: Install dependencies
|
|
62
|
+
if: steps.check.outputs.changed == 'true'
|
|
63
|
+
run: yarn install
|
|
64
|
+
|
|
65
|
+
- name: Create build
|
|
66
|
+
if: steps.check.outputs.changed == 'true'
|
|
67
|
+
run: yarn build
|
|
68
|
+
|
|
69
|
+
- name: Publish package to NPM
|
|
70
|
+
if: steps.check.outputs.changed == 'true'
|
|
71
|
+
run: yarn publish
|
|
72
|
+
env:
|
|
73
|
+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|