Skip to content

Commit

Permalink
Merge branch 'ts-migration'
Browse files Browse the repository at this point in the history
  • Loading branch information
denysdovhan committed Jun 16, 2023
2 parents 2f7b9ba + 19339f5 commit 99980d5
Show file tree
Hide file tree
Showing 5 changed files with 94 additions and 24 deletions.
14 changes: 0 additions & 14 deletions .github/workflows/build.yml

This file was deleted.

27 changes: 19 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,32 @@ on:
push:
branches:
- master

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
release:
name: Prepare release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: ⬇️ Checkout Repo
uses: actions/checkout@v3

- name: ⬢ Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '*'
cache: npm

- name: 📦 Install Packages
run: npm ci

- name: Build
run: |
cd /home/runner/work/purifier-card/purifier-card
npm install
npm run lint
npm run build
- name: 🏗 Build
run: npm run build

- name: Release
- name: 🚀 Release
run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
40 changes: 40 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Stale
on:
schedule:
- cron: '0 * * * *'
workflow_dispatch:

permissions:
issues: write # to close stale issues (actions/stale)
pull-requests: write # to close stale PRs (actions/stale)

jobs:
stale:
name: Stale
runs-on: ubuntu-latest
steps:
- name: 🧹 Clean stale issues and pull requests
uses: actions/stale@v8
with:
stale-issue-message: >
There hasn't been any activity on this issue recently.
This issue has now been marked as stale and will be closed if no further activity occurs.
Please, update to the latest version and check if that solves the issue.
Thank you for your contributions!
close-issue-message: >
This issue was closed because it has been stalled for 30 days with no activity.
Please open a new issue if the issue is still relevant, linking to this one.
stale-pr-message: >
This PR is stale because there hasn't been any activity for a long time.
close-pr-message: >
This PR was closed because it has been stalled for 30 days with no activity.
days-before-issue-stale: 60
days-before-pr-stale: 90
days-before-issue-close: 30
days-before-pr-close: 30
exempt-all-milestones: true
stale-issue-label: stale
stale-pr-label: stale
exempt-issue-labels: no-stale
exempt-pr-labels: no-stale
exempt-draft-pr: true
33 changes: 33 additions & 0 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Validate
on:
push:
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
validate:
name: Validate
runs-on: ubuntu-latest
steps:
- name: ⬇️ Checkout Repo
uses: actions/checkout@v3

- name: ⬢ Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '*'
cache: npm

- name: 📦 Install Packages
run: npm ci

- name: 🧪 Test
run: npm test

- name: 👷 HACS validation
uses: hacs/action@main
with:
category: plugin
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
"main": "dist/purifier-card.js",
"scripts": {
"start": "rollup -c --watch",
"compile": "rollup -c",
"lint": "eslint src",
"lint:fix": "eslint src --fix",
"format": "prettier --write .",
"build": "npm run lint && npm run compile",
"build": "rollup -c",
"test": "npm run lint && npm run build",
"prepare": "husky install"
},
"keywords": [
Expand Down

0 comments on commit 99980d5

Please sign in to comment.