Skip to content

Add support for Pixi 0.53 (#12) #4

Add support for Pixi 0.53 (#12)

Add support for Pixi 0.53 (#12) #4

Workflow file for this run

name: Release
on:
push:
tags:
- 'v*'
jobs:
check-version:
name: 'Check version'
runs-on: ubuntu-latest
steps:
- name: Install Nodejs
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: 22
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: ${{ env.FETCH_DEPTH }}
- name: Validate package version matches git tag
run: |
TAG_VERSION=${GITHUB_REF#refs/tags/v}
PACKAGE_VERSION=$(node -p "require('./package.json').version")
if [ "$TAG_VERSION" != "$PACKAGE_VERSION" ]; then
echo "Error: Tag version ($TAG_VERSION) does not match package.json version ($PACKAGE_VERSION)"
exit 1
fi
publish-code-marketplace:
name: 'Publish (Code Marketplace)'
runs-on: ubuntu-latest
needs: check-version
steps:
- name: Install Nodejs
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: 22
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 0
# Install Node dependencies.
- run: npm ci
# Publish to the Code Marketplace.
- name: Publish Extension (Code Marketplace)
run: npx vsce publish --pat ${{ secrets.MARKETPLACE_TOKEN }}
publish-openvsx:
name: 'Publish (OpenVSX)'
runs-on: ubuntu-latest
needs: check-version
steps:
- name: Install Nodejs
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: 22
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 0
# Install Node dependencies.
- run: npm ci
# Publish to OpenVSX.
- name: Publish Extension (OpenVSX, release)
run: npx ovsx publish --pat ${{ secrets.OPENVSX_TOKEN }}
timeout-minutes: 2