Skip to content

Commit

Permalink
Release tags to vscode marketplace
Browse files Browse the repository at this point in the history
  • Loading branch information
andersnm committed Jun 16, 2024
1 parent ed3bb1a commit 55038f2
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/release-tag.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Release
on:
push:
tags:
- "*"
jobs:
Release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
- run: npm install
- run: npm run build
- run: npm run bundle
- run: xvfb-run -a npm run test
- run: npm run publish -- -t ${{ secrets.VS_MARKETPLACE_TOKEN }}
- uses: actions/upload-artifact@v4
with:
name: vsix
path: packages/vscode-sourcemap-helper/sourcemap-helper-*.vsix
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ npm run bundle

# Create extension VSIX from bundle
npm run vsce

# Publish extension VSIX
npm run publish -- -p ${VSCE_PAT}
```

The extension is saved in `packages/vscode-sourcemap-helper/sourcemap-helper-(VERSION).vsix`
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"dev": "npm run dev --w vscode-sourcemap-helper",
"test": "npm run test --w packages/vscode-sourcemap-helper-test",
"vsce": "npm run vsce --w packages/vscode-sourcemap-helper",
"publish": "npm run publish --w packages/vscode-sourcemap-helper --",
"bundle": "npm run bundle --w packages/vscode-sourcemap-helper"
}
}
1 change: 1 addition & 0 deletions packages/vscode-sourcemap-helper/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@
"watch": "tsc -watch -p ./",
"test": "vscode-test",
"vsce": "vsce package --no-dependencies",
"publish": "vsce publish --no-dependencies",
"bundle": "node bundle.js"
},
"devDependencies": {
Expand Down

0 comments on commit 55038f2

Please sign in to comment.