From 71adbe8ec85cfc0cb2918e0c7fefe90c4f86be9d Mon Sep 17 00:00:00 2001 From: Marvin Heilemann <11534760+muuvmuuv@users.noreply.github.com> Date: Wed, 22 Jan 2025 08:46:16 +0100 Subject: [PATCH] ci: fix several issues and update to latest --- .github/ISSUE_TEMPLATE/feature_request.md | 2 +- .github/workflows/main.yml | 80 ++++++++++++----------- README.md | 6 +- 3 files changed, 47 insertions(+), 41 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md index 6df3e68..ace7c99 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.md +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -1,7 +1,7 @@ --- name: Feature request about: Suggest an idea for this project, something you wan to see or improvements -title: "[FEATURE] This would be killin'" +title: "[FEAT] This would be killin'" labels: '' assignees: '' --- diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index bcb8731..446ec74 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,4 +1,7 @@ name: Main +permissions: + contents: read + pull-requests: write on: push: @@ -10,49 +13,50 @@ on: - published jobs: - verify: + verify-code: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: - node-version: 16 + node-version: 22 cache: "npm" - run: npm ci - run: npm run package - - run: npm run lint + - run: npm run check - publish-open-vsx: - runs-on: ubuntu-latest - needs: - - verify - if: github.event_name == 'release' - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 - with: - node-version: 16 - cache: "npm" - - run: npm ci - - name: Publish to Open VSX Registry - uses: HaaLeo/publish-vscode-extension@v1 - with: - pat: ${{ secrets.OPEN_VSX_TOKEN }} + # publish-open-vsx: + # runs-on: ubuntu-latest + # needs: + # - verify-code + # if: github.event_name == 'release' + # steps: + # - uses: actions/checkout@v4 + # - uses: actions/setup-node@v4 + # with: + # node-version: 22 + # cache: "npm" + # - run: npm ci + # - run: npm package + # - name: Publish to Open VSX Registry + # uses: HaaLeo/publish-vscode-extension@28e2d3f + # with: + # pat: ${{ secrets.OPEN_VSX_TOKEN }} - publish-vs-marketplace: - runs-on: ubuntu-latest - needs: - - verify - if: github.event_name == 'release' - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 - with: - node-version: 16 - cache: "npm" - - run: npm ci - - name: Publish to Visual Studio Marketplace - uses: HaaLeo/publish-vscode-extension@v1 - with: - pat: ${{ secrets.VS_MARKETPLACE_TOKEN }} - registryUrl: https://marketplace.visualstudio.com + # publish-vs-marketplace: + # runs-on: ubuntu-latest + # needs: + # - verify-code + # if: github.event_name == 'release' + # steps: + # - uses: actions/checkout@v4 + # - uses: actions/setup-node@v4 + # with: + # node-version: 22 + # cache: "npm" + # - run: npm ci + # - name: Publish to Visual Studio Marketplace + # uses: HaaLeo/publish-vscode-extension@28e2d3f + # with: + # pat: ${{ secrets.VS_MARKETPLACE_TOKEN }} + # registryUrl: https://marketplace.visualstudio.com diff --git a/README.md b/README.md index a2e7b87..09da57c 100644 --- a/README.md +++ b/README.md @@ -5,8 +5,10 @@ #### Change your VS Code theme/settings based on your sunset, sunrise, system appearance or other preferences! -![Visual Studio Marketplace Rating (Stars)](https://img.shields.io/visual-studio-marketplace/stars/muuvmuuv.vscode-sundial?style=flat-square) -![Visual Studio Marketplace Downloads](https://img.shields.io/visual-studio-marketplace/d/muuvmuuv.vscode-sundial?style=flat-square) +[![Visual Studio Marketplace Rating](https://img.shields.io/visual-studio-marketplace/stars/muuvmuuv.vscode-sundial)](https://marketplace.visualstudio.com/items?itemName=muuvmuuv.vscode-sundial) +[![Visual Studio Marketplace Downloads](https://img.shields.io/visual-studio-marketplace/d/muuvmuuv.vscode-sundial) +](https://marketplace.visualstudio.com/items?itemName=muuvmuuv.vscode-sundial) +![Visual Studio Marketplace Downloads](https://api.codeclimate.com/v1/badges/52f93dc5f852410ef448/maintainability) - [Installation](#installation) - [Keybindings](#keybindings)