From fb964f9c743d8a7826ef0a7004fe79a96c7dafa3 Mon Sep 17 00:00:00 2001 From: Mark Wiemer <7833360+mark-wiemer@users.noreply.github.com> Date: Mon, 7 Oct 2024 20:32:12 -0700 Subject: [PATCH] Bundle properly (#534) --- .github/workflows/deploy.yml | 15 +++++++++++---- Changelog.md | 4 ++++ package.json | 2 +- readme.md | 2 +- 4 files changed, 17 insertions(+), 6 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e81246de..44354ddb 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,25 +1,29 @@ # Whenever any tag is pushed to the repo on: + workflow_dispatch: push: tags: - '*' - workflow_dispatch: -name: Deploy Extension +name: Publish extension jobs: deploy: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3.3.0 - - uses: actions/setup-node@v3.6.0 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 - run: npm ci + - run: npm run package - name: Publish to Open VSX Registry uses: HaaLeo/publish-vscode-extension@v1 with: # Generated via https://open-vsx.org/user-settings/tokens # Saved locally as "CI VS Code Open VSX publish token" pat: ${{ secrets.OPEN_VSX_TOKEN }} + extensionFile: 'ahkpp.vsix' + # dryRun: true # preRelease: true + skipDuplicate: true - name: Publish to Visual Studio Marketplace uses: HaaLeo/publish-vscode-extension@v1 with: @@ -27,5 +31,8 @@ jobs: # https://dev.azure.com/markwiemer/_usersSettings/tokens # Saved locally as "CI VS Code Marketplace Publish Token" pat: ${{ secrets.VS_MARKETPLACE_TOKEN }} + extensionFile: 'ahkpp.vsix' registryUrl: https://marketplace.visualstudio.com + # dryRun: true # preRelease: true + skipDuplicate: true diff --git a/Changelog.md b/Changelog.md index f191d8ec..d0e4e388 100644 --- a/Changelog.md +++ b/Changelog.md @@ -1,5 +1,9 @@ # Changelog +## 6.2.2 - 2024-10-07 🤏 + +- Reduce extension size by ~100x (yes, really) ([#533](https://github.com/mark-wiemer-org/ahkpp/issues/533)) + ## 6.2.1 - 2024-10-07 📚 - Restore readme to marketplaces (lost due to [auto-publish error](https://github.com/mark-wiemer-org/ahkpp/actions/runs/11225795502/job/31205122158)) diff --git a/package.json b/package.json index dec651e5..297e497e 100644 --- a/package.json +++ b/package.json @@ -63,7 +63,7 @@ "format:fix": "prettier --write .", "lint": "npm run format && npm run eslint && npm run sort-package-json", "lint:fix": "npm run format:fix && npm run eslint:fix && npm run sort-package-json:fix", - "package": "vsce package", + "package": "vsce package -o ahkpp.vsix", "prepare": "git submodule update --init --recursive && cd ahk2 && npm install", "sort-package-json": "sort-package-json --check", "sort-package-json:fix": "sort-package-json", diff --git a/readme.md b/readme.md index d0ad1f35..2d9a5fc4 100644 --- a/readme.md +++ b/readme.md @@ -13,7 +13,7 @@ AHK++ is available for: [VS Code](https://code.visualstudio.com) | [Theia IDE](https://theia-ide.org) | [VSCodium](https://vscodium.com) | ...any other IDE that supports \*.vsix extensions -Install from a marketplace: [VS Code Marketplace](https://marketplace.visualstudio.com/items?itemName=mark-wiemer.vscode-autohotkey-plus-plus) | [Open VSX Registry](https://open-vsx.org/extension/mark-wiemer/vscode-autohotkey-plus-plus) +Install from a marketplace: [Visual Studio Marketplace](https://marketplace.visualstudio.com/items?itemName=mark-wiemer.vscode-autohotkey-plus-plus) | [Open VSX Registry](https://open-vsx.org/extension/mark-wiemer/vscode-autohotkey-plus-plus) ## AHK v2 full support is here! 🥂