@@ -25,7 +25,7 @@ Before updating a version, always check existing tags to avoid conflicts:
25
25
git tag -l " v*"
26
26
27
27
# Or check a specific version
28
- git tag -l " v0.2 .0"
28
+ git tag -l " v0.3 .0"
29
29
```
30
30
31
31
## Setup
@@ -76,8 +76,8 @@ After merging to main, create a tag matching your version, and make a GitHub rel
76
76
``` bash
77
77
git checkout main
78
78
git pull
79
- git tag -a v0.2 .0 -m " Release version 0.2 .0" # Match your actual version
80
- git push origin v0.2.0
79
+ git tag -a v0.3 .0 -m " Release version 0.3 .0" # Match your actual version
80
+ git push upstream v0.3.0 # would typically be `origin` but my local dev environment uses a fork as `origin`
81
81
```
82
82
- Click on the "Releases" tab in the GitHub repository
83
83
- Click "Draft a new release"
@@ -119,7 +119,7 @@ npm publish --access public
119
119
Push the commit to the npm-release branch:
120
120
121
121
``` bash
122
- git push origin npm-release
122
+ git push upstream npm-release
123
123
```
124
124
125
125
## Maintaining the Release Branch
@@ -130,7 +130,7 @@ The `npm-release` branch should be periodically synced with main:
130
130
git checkout npm-release
131
131
git merge main
132
132
# Resolve any conflicts
133
- git push origin npm-release
133
+ git push upstream npm-release
134
134
```
135
135
136
136
## CDN Usage
@@ -142,17 +142,17 @@ Our project uses two CDN systems:
142
142
This CDN pulls directly from our GitHub repository based on git tags:
143
143
144
144
```
145
- https://cdn.jsdelivr.net/gh/necyberteam/qa-bot@v0.2 .0/build/static/js/main.js
145
+ https://cdn.jsdelivr.net/gh/necyberteam/qa-bot@v0.3 .0/build/static/js/main.js
146
146
```
147
147
148
148
The version number in these URLs must match git tags in our repository. Never reuse a version number that already has a tag to avoid breaking existing CDN links.
149
149
150
150
A complete jsDelivr implementation typically requires three files:
151
151
``` html
152
- <link rel =" stylesheet" href =" https://cdn.jsdelivr.net/gh/necyberteam/qa-bot@v0.2 .0/build/static/css/main.css" >
152
+ <link rel =" stylesheet" href =" https://cdn.jsdelivr.net/gh/necyberteam/qa-bot@v0.3 .0/build/static/css/main.css" >
153
153
<div id =" qa-bot" ></div >
154
- <script src =" https://cdn.jsdelivr.net/gh/necyberteam/qa-bot@v0.2 .0/build/static/js/main.js" ></script >
155
- <script src =" https://cdn.jsdelivr.net/gh/necyberteam/qa-bot@v0.2 .0/build/static/js/453.chunk.js" ></script >
154
+ <script src =" https://cdn.jsdelivr.net/gh/necyberteam/qa-bot@v0.3 .0/build/static/js/main.js" ></script >
155
+ <script src =" https://cdn.jsdelivr.net/gh/necyberteam/qa-bot@v0.3 .0/build/static/js/453.chunk.js" ></script >
156
156
```
157
157
158
158
** Important:** When updating the package:
@@ -165,7 +165,7 @@ A complete jsDelivr implementation typically requires three files:
165
165
After publishing to npm, the package will also be available via unpkg:
166
166
167
167
```
168
- https://unpkg.com/@snf/access-qa-bot@0.2 .0/dist/access-qa-bot.standalone.js
168
+ https://unpkg.com/@snf/access-qa-bot@0.3 .0/dist/access-qa-bot.standalone.js
169
169
```
170
170
171
171
### 3. Using the Published Package
0 commit comments