Skip to content

Commit

Permalink
ci: 4 -pre
Browse files Browse the repository at this point in the history
  • Loading branch information
CoolLoong committed Nov 8, 2024
1 parent 8e57fbc commit dce6cb5
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,13 @@ jobs:
steps:
- uses: actions/download-artifact@v4
- run: |
# if [[ "${{ github.event.head_commit.message }}" == *"-pre"* ]]; then
# npx vsce publish --pre-release --packagePath $(find . -iname *.vsix)
# else
# npx vsce publish --packagePath $(find . -iname *.vsix)
# fi
echo "Checking commit message for '-pre'..."
if [[ "${{ github.event.head_commit.message }}" == *"-pre"* ]]; then
echo "Publishing pre-release version..."
npx vsce publish --pre-release --packagePath $(find . -iname *.vsix) --no-dependencies
else
echo "Publishing stable version..."
npx vsce publish --packagePath $(find . -iname *.vsix) --no-dependencies
fi
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}

0 comments on commit dce6cb5

Please sign in to comment.