Skip to content

Commit

Permalink
add publish instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
greggman committed May 17, 2024
1 parent e9cf4ab commit 5ea7dfa
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 3 deletions.
29 changes: 29 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,35 @@ npm ci
npm run update
```

# Publishing

To publish

1. Bump the package version and tag.

The easiest way is `npm version patch`

2. Push the patch

```
git push --tag origin main
```

3. Wait for github actions to successfully build all the versions

4. Run `npm run publish`

This will download the files from the latest release to the `dist` folder
and then publish them.

Step 4 assumes you've gone through steps [here](https://code.visualstudio.com/api/working-with-extensions/publishing-extension), setup an Azure account, created an organization, created a personal access token, and logged in from the command line. You can log in with

```
npm run login <your-publisher-id>
```

Then run `npm run publish`

# Building

This builds for the local OS (win64,macOS-arm,linux)
Expand Down
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@
"type": "module",
"scripts": {
"build": "node build/build.js",
"login": "vsce login",
"publish": "node build/publish.js",
"update": "node build/update.js"
},
"repository": {
"type": "git",
"url": "git+https://github.com/greggman/tintd.git"
"url": "git+https://github.com/greggman/tintd-builder.git"
},
"keywords": [
"WGSL",
Expand All @@ -21,9 +22,9 @@
"author": "",
"license": "MIT",
"bugs": {
"url": "https://github.com/greggman/tintd/issues"
"url": "https://github.com/greggman/tintd-builder/issues"
},
"homepage": "https://github.com/greggman/tintd#readme",
"homepage": "https://github.com/greggman/tintd-builder#readme",
"devDependencies": {
"@vscode/vsce": "^2.26.1",
"octokit": "^4.0.2"
Expand Down

0 comments on commit 5ea7dfa

Please sign in to comment.