From a221b6ed73ce0c841888e4f20fab9752e281a946 Mon Sep 17 00:00:00 2001 From: Josh Willox Date: Tue, 14 Feb 2023 23:22:59 +1100 Subject: [PATCH] feat: update github files --- .github/ISSUE_TEMPLATE/generic_issue.md | 4 ---- .github/workflows/ci.yml | 24 ++++++++------------ .github/workflows/release.yml | 14 +++--------- .github/workflows/{hacs.yml => validate.yml} | 11 +++++---- 4 files changed, 19 insertions(+), 34 deletions(-) delete mode 100644 .github/ISSUE_TEMPLATE/generic_issue.md rename .github/workflows/{hacs.yml => validate.yml} (70%) diff --git a/.github/ISSUE_TEMPLATE/generic_issue.md b/.github/ISSUE_TEMPLATE/generic_issue.md deleted file mode 100644 index 8f2bcefe..00000000 --- a/.github/ISSUE_TEMPLATE/generic_issue.md +++ /dev/null @@ -1,4 +0,0 @@ ---- -name: Custom issue -about: Create a generic issue ---- diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 06f3f00e..2ff38182 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,6 +5,7 @@ on: branches: - "main" - "feat**" + - "fix**" tags-ignore: - "**" pull_request: @@ -15,19 +16,15 @@ jobs: runs-on: ubuntu-latest steps: - name: "Checkout the repository" - uses: actions/checkout@v2 - - - name: "Extract engines" - id: engines - run: echo ::set-output name=node::$(jq --raw-output .engines.node ./package.json) + uses: actions/checkout@v3 - name: "Setup pnpm" uses: pnpm/action-setup@v2 - name: "Setup node" - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: - node-version: ${{ steps.engines.outputs.node }} + node-version-file: package.json cache: ${{ !env.ACT && 'pnpm' || '' }} - name: "Install dependencies" @@ -44,23 +41,22 @@ jobs: runs-on: ubuntu-latest steps: - name: "Checkout the repository" - uses: actions/checkout@v2 - - - name: "Extract engines" - id: engines - run: echo ::set-output name=node::$(jq --raw-output .engines.node ./package.json) + uses: actions/checkout@v3 - name: "Setup pnpm" uses: pnpm/action-setup@v2 - name: "Setup node" - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: - node-version: ${{ steps.engines.outputs.node }} + node-version-file: package.json cache: ${{ !env.ACT && 'pnpm' || '' }} - name: "Install dependencies" run: pnpm install + - name: "Typecheck" + run: pnpm run typecheck + - name: "Run Build" run: pnpm run build diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5d47a130..d9e3c3da 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,23 +10,15 @@ jobs: runs-on: ubuntu-latest steps: - name: "Checkout the repository" - uses: actions/checkout@v2 - - - name: "Update version" - run: | - echo $(jq '.version="${{ github.event.release.tag_name }}"' package.json) > package.json - - - name: "Extract engines" - id: engines - run: echo ::set-output name=node::$(jq --raw-output .engines.node ./package.json) + uses: actions/checkout@v3 - name: "Setup pnpm" uses: pnpm/action-setup@v2 - name: "Setup node" - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: - node-version: ${{ steps.engines.outputs.node }} + node-version-file: package.json cache: ${{ !env.ACT && 'pnpm' || '' }} - name: "Install dependencies" diff --git a/.github/workflows/hacs.yml b/.github/workflows/validate.yml similarity index 70% rename from .github/workflows/hacs.yml rename to .github/workflows/validate.yml index 25aa43a4..0a82e5f2 100644 --- a/.github/workflows/hacs.yml +++ b/.github/workflows/validate.yml @@ -1,10 +1,11 @@ -name: "HACS" +name: "Validate" on: push: branches: - "main" - "feat**" + - "fix**" tags-ignore: - "**" pull_request: @@ -12,14 +13,14 @@ on: - cron: "0 0 * * *" jobs: - validate: - name: "Validate" + validate-hacs: runs-on: ubuntu-latest + name: "HACS" steps: - name: "Checkout the repository" - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: "Validate HACS" uses: hacs/action@main with: - category: "plugin" + category: plugin