@universal-tennis/ui-shared 0.0.4 → 0.0.6

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/README.md CHANGED
@@ -77,7 +77,19 @@ Buttons should be uniform across the platforms with minimal variants, not multip
77
77
  [Atomic Design](https://bradfrost.com/blog/post/atomic-web-design/)
78
78
 
79
79
 
80
- ## Publishing the Repo
80
+ ## Bitbucket CICD flow Publishing the Repo
81
+
82
+ 1. Pull the latest from master -> make changes to a PR back into master.
83
+ First when creating a new component, make sure to add it to the `components.jsx` file.
84
+ 2. In the `package.json` file, make sure to pump to the next minor version.
85
+ 3. After merging back into master, tag the commit with the same `package.json` version number.
86
+ This will then trigger a NPM package build with the version listed in the `package.json`; make sure the release tags are the same for consistency.
87
+
88
+ It can now be accessed in another repo like this:
89
+ <br />
90
+ `import {Button} from "@universal-tennis/ui-shared";`
91
+
92
+ #### Manually Publishing the Repo (Should be done via CICD flow)
81
93
 
82
94
  1. First when creating a new component, make sure to add it to the `components.jsx` file.
83
95
  2. Then Run `yarn run publish:npm` to build a optimized build for all the components, this is configured for TS.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@universal-tennis/ui-shared",
3
- "version": "0.0.4",
3
+ "version": "0.0.6",
4
4
  "main": "dist/items.js",
5
5
  "license": "MIT",
6
6
  "homepage": "https://universaltennis.com",
@@ -26,7 +26,7 @@ jobs:
26
26
  - script: |
27
27
  yarn
28
28
  yarn run publish:npm
29
- npm publish --access public
29
+ npm publish
30
30
  displayName: Publish npm package
31
31
  env:
32
32
  NPM_TOKEN: $(NpmPublishToken)
@@ -1,22 +0,0 @@
1
- name: Publish package
2
-
3
- on:
4
- push:
5
- branches:
6
- - master
7
- workflow_dispatch:
8
-
9
- jobs:
10
- build:
11
- runs-on: ubuntu-latest
12
- steps:
13
- - uses: actions/checkout@v3
14
- - uses: actions/setup-node@v3
15
- with:
16
- node-version: 16
17
- registry-url: https://npm.pkg.github.com/
18
- - run: yarn
19
- - run: yarn run publish:npm
20
- - run: npm publish --access public
21
- variables:
22
- NPM_TOKEN: $NPM_TOKEN