Skip to content

Commit a2b08c9

Browse files
committed
make publishing file reflect current state
1 parent d4f0f9d commit a2b08c9

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

publishing.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Before updating a version, always check existing tags to avoid conflicts:
2525
git tag -l "v*"
2626

2727
# Or check a specific version
28-
git tag -l "v0.2.0"
28+
git tag -l "v0.3.0"
2929
```
3030

3131
## Setup
@@ -76,8 +76,8 @@ After merging to main, create a tag matching your version, and make a GitHub rel
7676
```bash
7777
git checkout main
7878
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`
8181
```
8282
- Click on the "Releases" tab in the GitHub repository
8383
- Click "Draft a new release"
@@ -119,7 +119,7 @@ npm publish --access public
119119
Push the commit to the npm-release branch:
120120

121121
```bash
122-
git push origin npm-release
122+
git push upstream npm-release
123123
```
124124

125125
## Maintaining the Release Branch
@@ -130,7 +130,7 @@ The `npm-release` branch should be periodically synced with main:
130130
git checkout npm-release
131131
git merge main
132132
# Resolve any conflicts
133-
git push origin npm-release
133+
git push upstream npm-release
134134
```
135135

136136
## CDN Usage
@@ -142,17 +142,17 @@ Our project uses two CDN systems:
142142
This CDN pulls directly from our GitHub repository based on git tags:
143143

144144
```
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
146146
```
147147

148148
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.
149149

150150
A complete jsDelivr implementation typically requires three files:
151151
```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">
153153
<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>
156156
```
157157

158158
**Important:** When updating the package:
@@ -165,7 +165,7 @@ A complete jsDelivr implementation typically requires three files:
165165
After publishing to npm, the package will also be available via unpkg:
166166

167167
```
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
169169
```
170170

171171
### 3. Using the Published Package

0 commit comments

Comments
 (0)