Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Publish

on:
release:
types: [published]

permissions: {}

jobs:
publish:
if: ${{ !github.event.release.prerelease }}
runs-on: ubuntu-latest
environment: marketplace
permissions:
contents: read
id-token: write
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Use Node.js
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version-file: ".nvmrc"
package-manager-cache: false
- name: Check tag matches package.json version
run: test "$GITHUB_REF_NAME" = "v$(node -p "require('./package.json').version")"
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Publish to Visual Studio Marketplace
run: yarn vsce publish --oidc
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## 4.1.1 - 2026-11-04

### Changed

- Publish to the Marketplace from GitHub Actions with trusted publishing. (#84)

## 4.1.0 - 2026-09-29

### Changed
Expand Down
8 changes: 2 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Download the extension package from the [latest Github release](https://github.c

### From source

With `vsce` installed from NPM (`yarn global add vsce`), clone [this repo](https://github.com/chdsbd/vscode-githubinator) and run `vsce package`. Install the resulting package with `code --install-extension githubinator-*.vsix`
Clone [this repo](https://github.com/chdsbd/vscode-githubinator) and run `yarn install` and `yarn vsce package`. Install the resulting package with `code --install-extension githubinator-*.vsix`

## Features

Expand Down Expand Up @@ -117,11 +117,7 @@ yarn test

### Publish

```bash
vsce package
vsce login chdsbd
vsce publish <version>
```
Bump the version in `package.json`, merge to `master`, and create a GitHub release tagged `v<version>`. The [Publish workflow](https://github.com/chdsbd/vscode-githubinator/actions/workflows/publish.yml) publishes it to the Marketplace, skipping pre-releases.

[marketplace]: https://marketplace.visualstudio.com/items?itemName=chdsbd.githubinator

Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "githubinator",
"displayName": "Githubinator",
"description": "Quickly open files on Github and other providers. View blame information, copy permalinks and more. See the \"commands\" section of the README for more details.",
"version": "4.1.0",
"version": "4.1.1",
"publisher": "chdsbd",
"license": "SEE LICENSE IN LICENSE",
"icon": "images/logo256.png",
Expand Down Expand Up @@ -459,6 +459,7 @@
"@types/vscode": "^1.110.0",
"@vscode/test-cli": "^0.0.9",
"@vscode/test-electron": "^2.4.0",
"@vscode/vsce": "4.1.0",
"esbuild": "^0.28.2",
"mocha": "^10.4.0",
"prettier": "^3.3.0",
Expand Down
Loading
Loading