-
-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
75 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# This is a basic workflow that is manually triggered | ||
|
||
name: "[sub] Publish to Marketplace" | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
ref: | ||
type: string | ||
required: true | ||
paths_released: | ||
type: string | ||
required: true | ||
secrets: | ||
OVSX_TOKEN: | ||
required: true | ||
VSCE_TOKEN: | ||
required: true | ||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
extension_dir: ${{ fromJSON(inputs.paths_released) }} | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ inputs.ref }} | ||
- name: Install | ||
run: npm install | ||
- name: Prepare Try to Release | ||
run: echo "${{ matrix.extension_dir }}" | ||
# - name: Publish VSCE | ||
# run: npx lerna exec --no-bail "vsce publish -p ${{ secrets.VSCE_TOKEN }}" || echo done | ||
# - name: Publish OVSX | ||
# run: npx lerna exec --no-bail "ovsx publish -p ${{ secrets.OVSX_TOKEN }}" || echo done | ||
# cspell:ignore vsix xargs OVSX |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash | ||
|
||
SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )" | ||
JQ_FILTER_PACKAGES="$SCRIPT_DIR/code-workspace-packages.jq" | ||
|
||
FOLDERS="$(echo $(ls -1 extensions/*/package.json) \ | ||
| xargs jq -f $JQ_FILTER_PACKAGES \ | ||
| jq ".path" | jq -s ".")" | ||
|
||
echo $FOLDERS |