diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 275777e..e3f6066 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -10,38 +10,26 @@ jobs: runs-on: ubuntu-latest steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Install Node.js - uses: actions/setup-node@v4 - with: - node-version: 18.x - - - name: Install Dependencies - run: npm ci - - - name: Install VSCE - run: npm install -g vsce - - - name: Update version and default in package.json - run: | - TAG_NAME=${{ github.ref_name }} - VERSION=${TAG_NAME#v} - VERSION=${VERSION%-beta} - if [[ "$TAG_NAME" == *"-beta"* ]]; then - jq --arg version "$VERSION" --arg default "beta" '.version = $version | .contributes.configuration.properties["dev-proxy-toolkit.version"].default = $default' package.json > package.tmp.json - else - jq --arg version "$VERSION" --arg default "stable" '.version = $version | .contributes.configuration.properties["dev-proxy-toolkit.version"].default = $default' package.json > package.tmp.json - fi - mv package.tmp.json package.json - - - name: Publish - env: - VSCE_PAT: ${{ secrets.VSCE_PAT }} - run: | - if [[ "$TAG_NAME" == *"-beta"* ]]; then - vsce publish --pre-release - else - vsce publish - fi + - name: Checkout code + uses: actions/checkout@v4 + + - name: Install Node.js + uses: actions/setup-node@v4 + with: + node-version: 18.x + + - name: Install Dependencies + run: npm ci + + - name: Install VSCE + run: npm install -g vsce + + - name: Publish + env: + VSCE_PAT: ${{ secrets.VSCE_PAT }} + run: | + if [[ "${GITHUB_REF}" == *"-beta" ]]; then + vsce publish --pre-release + else + vsce publish + fi diff --git a/package.json b/package.json index aa0307f..6e38c4e 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "dev-proxy-toolkit", "displayName": "Dev Proxy Toolkit", "description": "Makes it easy to create and update Dev Proxy configuration files.", - "version": "0.8.0", + "version": "0.9.0", "publisher": "garrytrinder", "engines": { "vscode": "^1.85.0" @@ -130,7 +130,7 @@ } } }, - "preview": true, + "preview": false, "pricing": "Free", "icon": "dist/icon.png", "homepage": "https://github.com/garrytrinder/dev-proxy-toolkit/blob/main/README.md",