Skip to content

Commit

Permalink
KXI-33125: Enable publish to marketplace in prod release
Browse files Browse the repository at this point in the history
  • Loading branch information
cterry45 committed Jan 23, 2024
1 parent 4407792 commit f50fcfd
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 25 deletions.
48 changes: 24 additions & 24 deletions .github/workflows/prod_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,28 +82,28 @@ jobs:
asset_name: kdb-${{ steps.vars.outputs.run_tag }}.vsix
asset_content_type: application/octet-stream

# manual-approve:
# needs: release
# environment:
# name: approvers
# runs-on: ubuntu-latest
# steps:
# - name: Manual Approve
# run: echo "Manually approved"
manual-approve:
needs: release
environment:
name: approvers
runs-on: ubuntu-latest
steps:
- name: Manual Approve
run: echo "Manually approved"

# publish:
# needs: manual-approve
# - name: Checkout source code
# uses: actions/checkout@v2
# with:
# fetch-depth: 0
# - name: Install Node.js
# uses: actions/setup-node@v3
# with:
# node-version: 16.x
# - name: Install dependencies
# run: npm ci --include=dev
# - name: Publish to VSCode Marketplace
# run: npm run publish
# env:
# VSCE_PAT: ${{ secrets.VSCE_PAT }}
publish:
needs: manual-approve
- name: Checkout source code
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 16.x
- name: Install dependencies
run: npm ci --include=dev
- name: Publish to VSCode Marketplace
run: npm run publish
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,8 @@
"test": "tsc -p ./test && node ./out/test/runTest.js",
"coverage": "tsc -p ./test && node ./out/test/runTest.js --coverage",
"package": "npx vsce package",
"format": "prettier --ignore-path .gitignore --write \"**/*.+(js|ts|json)\""
"format": "prettier --ignore-path .gitignore --write \"**/*.+(js|ts|json)\"",
"publish": "npx vsce publish --yarn"
},
"prettier": {
"printWidth": 80,
Expand Down

0 comments on commit f50fcfd

Please sign in to comment.