Skip to content

Commit

Permalink
enh: verify pat before bumping things
Browse files Browse the repository at this point in the history
  • Loading branch information
anibalsolon committed Nov 26, 2022
1 parent 7965e61 commit 300a632
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/test-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,18 @@ jobs:
- uses: actions/checkout@v2
with:
token: ${{ secrets.GH_TOKEN }}

- run: |
npm run vscode:vsce -- verify-pat -p "$PAT"
env:
PAT: ${{ secrets.VSCE_PAT }}
# Not yet available
# - run: |
# npm run vscode:ovsx -- verify-pat -p "$PAT"
# env:
# PAT: ${{ secrets.VSCE_PAT }}

- uses: actions/cache@v3
with:
path: ~/.npm
Expand All @@ -88,6 +100,7 @@ jobs:
- run: npm install
- run: git config --global user.name `jq -r '.author.name' package.json`
- run: git config --global user.email `jq -r '.author.email' package.json`

- run: git status
- run: npm version patch -m "[RELEASE] %s"
- run: npm run vscode:package
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@
"vscode:package": "vsce package",
"vscode:vsce:publish": "vsce publish -i neuro-viewer-*.vsix --pat",
"vscode:ovsx:publish": "ovsx publish neuro-viewer-*.vsix --pat",
"vscode:vsce": "vsce",
"vscode:ovsx": "ovsx",
"open-in-browser": "vscode-test-web --extensionDevelopmentPath=. data"
},
"devDependencies": {
Expand Down
1 change: 1 addition & 0 deletions webview/nifti/info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export class InfoView {
render() {
const header = this.header;
const dims = header.dimensions;

this.el.dimensions.innerHTML = `${dims.length}-D: [${dims.join(', ')}]`;

this.el.voxelSize.innerHTML = header.voxelSize.map(
Expand Down

0 comments on commit 300a632

Please sign in to comment.