Skip to content

Commit f99fc59

Browse files
committed
ci: tag after packaging but before publishing
1 parent 70d6658 commit f99fc59

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed

.github/workflows/marketplace-publish.yml

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,24 +25,24 @@ jobs:
2525
- uses: actions/setup-node@v4
2626
with:
2727
node-version: 18
28+
2829
- run: |
2930
git config user.name github-actions
3031
git config user.email [email protected]
32+
3133
- name: Install Dependencies
3234
run: |
3335
npm install -g vsce ovsx
3436
npm run install:ci
37+
3538
- name: Create .env file
3639
run: |
3740
echo "# PostHog API Keys for telemetry" > .env
3841
echo "POSTHOG_API_KEY=${{ secrets.POSTHOG_API_KEY }}" >> .env
39-
- name: Package and Publish Extension
40-
env:
41-
VSCE_PAT: ${{ secrets.VSCE_PAT }}
42-
OVSX_PAT: ${{ secrets.OVSX_PAT }}
42+
43+
- name: Package Extension
4344
run: |
4445
current_package_version=$(node -p "require('./package.json').version")
45-
4646
npm run vsix
4747
package=$(unzip -l bin/roo-cline-${current_package_version}.vsix)
4848
echo "$package"
@@ -51,12 +51,18 @@ jobs:
5151
echo "$package" | grep -q "extension/node_modules/@vscode/codicons/dist/codicon.ttf" || exit 1
5252
echo "$package" | grep -q ".env" || exit 1
5353
54-
npm run publish:marketplace
55-
echo "Successfully published version $current_package_version to VS Code Marketplace"
56-
5754
- name: Create and Push Git Tag
5855
run: |
5956
current_package_version=$(node -p "require('./package.json').version")
6057
git tag -a "v${current_package_version}" -m "Release v${current_package_version}"
6158
git push origin "v${current_package_version}"
6259
echo "Successfully created and pushed git tag v${current_package_version}"
60+
61+
- name: Publish Extension
62+
env:
63+
VSCE_PAT: ${{ secrets.VSCE_PAT }}
64+
OVSX_PAT: ${{ secrets.OVSX_PAT }}
65+
run: |
66+
current_package_version=$(node -p "require('./package.json').version")
67+
npm run publish:marketplace
68+
echo "Successfully published version $current_package_version to VS Code Marketplace"

0 commit comments

Comments
 (0)