diff --git a/.github/workflows/package.yml b/.github/workflows/publish.yml similarity index 55% rename from .github/workflows/package.yml rename to .github/workflows/publish.yml index c5d1215..fc85dba 100644 --- a/.github/workflows/package.yml +++ b/.github/workflows/publish.yml @@ -1,4 +1,4 @@ -name: Package +name: Publish on: push: @@ -8,8 +8,8 @@ on: concurrency: ${{ github.workflow }}-${{ github.ref }} jobs: - package: - name: Package + publish: + name: Publish runs-on: ubuntu-latest steps: - name: Checkout Repo @@ -24,13 +24,7 @@ jobs: - name: Install Dependencies run: npm ci - - name: Package - run: npm run package - - - name: Archive extension package - uses: actions/upload-artifact@v4 - with: - name: package - path: squarecloud-*.vsix - retention-days: 7 - if-no-files-found: warn \ No newline at end of file + - name: Publish + env: + VSCE_PAT: ${{ secrets.VSCODE_PERSONAL_TOKEN }} + run: npm run publish \ No newline at end of file diff --git a/package.json b/package.json index 47b9260..966dfe8 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,7 @@ "main": "./dist/extension.js", "scripts": { "vscode:prepublish": "npm run build", - "package": "vsce package --allow-star-activation", + "publish": "vsce publish --allow-star-activation", "build": "tsc && tsc-alias", "check-types": "tsc --noEmit", "watch": "concurrently --raw \"tsc -w\" \"tsc-alias -w\"",