diff --git a/.github/workflows/joint-publish-extension.yaml b/.github/workflows/joint-publish-extension.yaml new file mode 100644 index 0000000..474a237 --- /dev/null +++ b/.github/workflows/joint-publish-extension.yaml @@ -0,0 +1,37 @@ +name: Publish and Release Extension + +on: + push: + tags: + - "*v" + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v1 + with: + node-version: 16 + - run: npm ci + + - name: Publish to Open VSX Registry + id: publishToOpenVSX + uses: HaaLeo/publish-vscode-extension@v1 + with: + pat: ${{ secrets.OPEN_VSX_PAT }} + + - name: Publish to Visual Studio Marketplace + uses: HaaLeo/publish-vscode-extension@v1 + with: + pat: ${{ secrets.VSCE_PAT }} + registryUrl: https://marketplace.visualstudio.com + extensionFile: ${{ steps.publishToOpenVSX.outputs.vsixPath }} + + - name: GitHub Release + uses: softprops/action-gh-release@v1 + with: + generate_release_notes: true + name: ${{ github.ref_name }} + fail_on_unmatched_files: true + files: ${{ steps.publishToOpenVSX.outputs.vsixPath }} diff --git a/.github/workflows/publish-extension.yaml b/.github/workflows/publish-extension.yaml deleted file mode 100644 index 63b7b86..0000000 --- a/.github/workflows/publish-extension.yaml +++ /dev/null @@ -1,79 +0,0 @@ -# Adapted from: https://github.com/microsoft/vscode-platform-specific-sample/blob/main/.github/workflows/ci.yml -name: CI -on: - push: - branches: - - "main" - tags: - - "*v" - -jobs: - build: - strategy: - matrix: - include: - - os: windows-latest - platform: win32 - arch: x64 - npm_config_arch: x64 - - os: windows-latest - platform: win32 - arch: ia32 - npm_config_arch: ia32 - - os: windows-latest - platform: win32 - arch: arm64 - npm_config_arch: arm - - os: ubuntu-latest - platform: linux - arch: x64 - npm_config_arch: x64 - - os: ubuntu-latest - platform: linux - arch: arm64 - npm_config_arch: arm64 - - os: ubuntu-latest - platform: linux - arch: armhf - npm_config_arch: arm - - os: ubuntu-latest - platform: alpine - arch: x64 - npm_config_arch: x64 - - os: macos-latest - platform: darwin - arch: x64 - npm_config_arch: x64 - - os: macos-latest - platform: darwin - arch: arm64 - npm_config_arch: arm64 - runs-on: ${{ matrix.os }} - steps: - - name: Checkout - uses: actions/checkout@v3 - - name: Install Node.js - uses: actions/setup-node@v3 - with: - node-version: 16.x - - name: Install - run: npm install - - name: Publish - shell: pwsh - run: echo "target=${{ matrix.platform }}-${{ matrix.arch }}" >> $env:GITHUB_ENV - - run: npx @vscode/vsce package --target ${{ env.target }} - - name: Upload .vsix to GitHub - uses: actions/upload-artifact@v2 - with: - name: ${{ env.target }} - path: "*.vsix" - - publish: - runs-on: ubuntu-latest - needs: build - if: success() && startsWith( github.ref, 'refs/tags/') - steps: - - uses: actions/download-artifact@v2 - - run: npx @vscode/vsce publish --packagePath $(find . -iname *.vsix) - env: - VSCE_PAT: ${{ secrets.VSCE_PAT }} diff --git a/CHANGELOG.md b/CHANGELOG.md index 5cdaad8..1ad1bb5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,26 +2,35 @@ Structured according to [Keep a Changelog](http://keepachangelog.com/). +## [1.0.4] - 2023-08-26 + +### Added + +- Publishing to the Open VSX Registry with the GitHub Action [HaaLeo/publish-vscode-extension](https://github.com/HaaLeo/publish-vscode-extension). +- Automatic publishing of a GitHub Release upon tagging of a new version using [softprops/action-gh-release](https://github.com/softprops/action-gh-release). +- MIT license. +- Links in the readme for previewing this theme. + ## [1.0.3] - 2023-06-17 ### Fixed -- Fix publishing Action by changing readme badge provider +- Publishing Action by changing readme badge provider. ## [1.0.2] - 2023-06-10 ### Fixed -- Update VS Code compatibility version +- Update VS Code compatibility version. ## [1.0.1] - 2023-06-10 ### Added -- Add GitHub Action for publishing the extension as artifact and to the VS Marketplace -- Add screenshot to readme. -- Add VS Marketplace badges to readme. -- Add commitlint hook for enforcing commit conventions. +- GitHub Action for publishing the extension as artifact and to the VS Marketplace. +- Screenshot in readme. +- VS Marketplace badges in readme. +- Commitlint hook for enforcing commit conventions. ## [1.0.0] - 2020-03-08 diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..a976972 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2023 Alexander Ravenna + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md index 618c8c2..302bf0f 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,8 @@ [![Installs badge](https://img.shields.io/visual-studio-marketplace/i/alexravenna.monokai-dimmed-vibrant)](https://marketplace.visualstudio.com/items?itemName=alexravenna.monokai-dimmed-vibrant) [![Downloads badge](https://img.shields.io/visual-studio-marketplace/d/alexravenna.monokai-dimmed-vibrant)](https://marketplace.visualstudio.com/items?itemName=alexravenna.monokai-dimmed-vibrant) +Test it out on the [Theme Tester Playground](https://vscode.dev/theme/alexravenna.monokai-dimmed-vibrant/) or see previews for multiple programming languages on [VS Code Themes](https://vscodethemes.com/e/alexravenna.monokai-dimmed-vibrant/monokai-dimmedvibrant). + ![Screenshot](screenshot.png) A dark color theme based on the gray-tone editor colors of the built-in Monokai Dimmed theme and the vibrant text colors of [Monokai Vibrant](https://marketplace.visualstudio.com/items?itemName=s3gf4ult.monokai-vibrant). diff --git a/package.json b/package.json index 55cf55b..9c01e3f 100644 --- a/package.json +++ b/package.json @@ -1,40 +1,44 @@ { - "name": "monokai-dimmed-vibrant", - "displayName": "Monokai Dimmed+Vibrant", - "description": "A color theme based on the gray-tone editor colors of Monokai Dimmed and the vibrant text colors of Monokai Vibrant", - "version": "1.0.3", - "engines": { - "vscode": "^1.79.0" - }, - "categories": [ - "Themes" - ], - "contributes": { - "themes": [ - { - "label": "Monokai Dimmed+Vibrant", - "uiTheme": "vs-dark", - "path": "./themes/monokai-dimmed-vibrant-color-theme.json" - } - ] - }, - "galleryBanner": { - "color": "#1E1E1E", - "theme": "dark" - }, - "author": "Alex Ravenna ", - "publisher": "alexravenna", - "license": "MIT", - "repository": { - "type": "git", - "url": "https://github.com/alexravenna/vscode-dimmed-vibrant.git" - }, - "bugs": { - "url": "https://github.com/alexravenna/vscode-dimmed-vibrant/issues" - }, - "devDependencies": { - "@commitlint/cli": "^17.5.1", - "@commitlint/config-conventional": "^17.4.4", - "husky": "^8.0.3" - } + "name": "monokai-dimmed-vibrant", + "displayName": "Monokai Dimmed+Vibrant", + "description": "A color theme based on the gray-tone editor colors of Monokai Dimmed and the vibrant text colors of Monokai Vibrant", + "version": "1.0.4", + "engines": { + "vscode": "^1.79.0" + }, + "categories": [ + "Themes" + ], + "contributes": { + "themes": [ + { + "label": "Monokai Dimmed+Vibrant", + "uiTheme": "vs-dark", + "path": "./themes/monokai-dimmed-vibrant-color-theme.json" + } + ] + }, + "galleryBanner": { + "color": "#1E1E1E", + "theme": "dark" + }, + "author": { + "name": "Alex Ravenna", + "email": "alex.n.ravenna@gmail.com", + "url": "https://github.com/alexravenna" + }, + "publisher": "alexravenna", + "license": "MIT", + "repository": { + "type": "git", + "url": "https://github.com/alexravenna/vscode-dimmed-vibrant.git" + }, + "bugs": { + "url": "https://github.com/alexravenna/vscode-dimmed-vibrant/issues" + }, + "devDependencies": { + "@commitlint/cli": "^17.5.1", + "@commitlint/config-conventional": "^17.4.4", + "husky": "^8.0.3" + } }