purifier-card 2.5.1 → 2.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/FUNDING.yml +0 -1
- package/.github/dependabot.yml +1 -1
- package/.github/workflows/main.yml +78 -0
- package/.github/workflows/stale.yml +2 -1
- package/CODE_OF_CONDUCT.md +13 -13
- package/dist/purifier-card.js +2 -2
- package/package.json +9 -6
- package/src/purifier-card.ts +14 -12
- package/src/translations/es.json +36 -36
- package/.github/workflows/release.yml +0 -35
- package/.github/workflows/validate.yml +0 -33
package/.github/FUNDING.yml
CHANGED
package/.github/dependabot.yml
CHANGED
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
name: Main
|
|
2
|
+
on:
|
|
3
|
+
push:
|
|
4
|
+
pull_request:
|
|
5
|
+
|
|
6
|
+
permissions:
|
|
7
|
+
contents: write
|
|
8
|
+
pull-requests: write
|
|
9
|
+
|
|
10
|
+
concurrency:
|
|
11
|
+
group: ${{ github.workflow }}-${{ github.ref }}
|
|
12
|
+
cancel-in-progress: true
|
|
13
|
+
|
|
14
|
+
jobs:
|
|
15
|
+
validate:
|
|
16
|
+
name: Validate
|
|
17
|
+
runs-on: ubuntu-latest
|
|
18
|
+
steps:
|
|
19
|
+
- name: ⬇️ Checkout Repo
|
|
20
|
+
uses: actions/checkout@v4
|
|
21
|
+
|
|
22
|
+
- name: ⬢ Setup Node.js
|
|
23
|
+
uses: actions/setup-node@v4
|
|
24
|
+
with:
|
|
25
|
+
node-version: '*'
|
|
26
|
+
cache: npm
|
|
27
|
+
|
|
28
|
+
- name: 📦 Install Packages
|
|
29
|
+
run: npm ci
|
|
30
|
+
|
|
31
|
+
- name: 🧪 Test
|
|
32
|
+
run: npm test
|
|
33
|
+
|
|
34
|
+
release:
|
|
35
|
+
name: Release
|
|
36
|
+
runs-on: ubuntu-latest
|
|
37
|
+
needs: [validate]
|
|
38
|
+
if: github.repository == 'denysdovhan/purifier-card' && github.event_name == 'push' && github.ref_name == 'main'
|
|
39
|
+
steps:
|
|
40
|
+
- name: ⬇️ Checkout Repo
|
|
41
|
+
uses: actions/checkout@v4
|
|
42
|
+
|
|
43
|
+
- name: ⬢ Setup Node.js
|
|
44
|
+
uses: actions/setup-node@v4
|
|
45
|
+
with:
|
|
46
|
+
node-version: '*'
|
|
47
|
+
cache: npm
|
|
48
|
+
|
|
49
|
+
- name: 📦 Install Packages
|
|
50
|
+
run: npm ci
|
|
51
|
+
|
|
52
|
+
- name: 🏗 Build
|
|
53
|
+
run: npm run build
|
|
54
|
+
|
|
55
|
+
- name: 🚀 Release
|
|
56
|
+
run: npx semantic-release
|
|
57
|
+
env:
|
|
58
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
59
|
+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
60
|
+
|
|
61
|
+
dependabot:
|
|
62
|
+
name: Dependabot Auto-merge
|
|
63
|
+
runs-on: ubuntu-latest
|
|
64
|
+
needs: [validate]
|
|
65
|
+
if: github.actor == 'dependabot[bot]' && github.event_name == 'pull_request'
|
|
66
|
+
steps:
|
|
67
|
+
- name: 💿 Dependabot metadata
|
|
68
|
+
id: metadata
|
|
69
|
+
uses: dependabot/fetch-metadata@v1
|
|
70
|
+
with:
|
|
71
|
+
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
72
|
+
|
|
73
|
+
- name: ↔️ Enable Auto-merge for minor and patch Dependabot PRs
|
|
74
|
+
run: gh pr merge --auto --squash "$PR_URL"
|
|
75
|
+
if: steps.metadata.outputs.update-type == 'version-update:semver-minor' || steps.metadata.outputs.update-type == 'version-update:semver-patch'
|
|
76
|
+
env:
|
|
77
|
+
PR_URL: ${{ github.event.pull_request.html_url }}
|
|
78
|
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
@@ -14,12 +14,13 @@ jobs:
|
|
|
14
14
|
runs-on: ubuntu-latest
|
|
15
15
|
steps:
|
|
16
16
|
- name: 🧹 Clean stale issues and pull requests
|
|
17
|
-
uses: actions/stale@
|
|
17
|
+
uses: actions/stale@v9
|
|
18
18
|
with:
|
|
19
19
|
stale-issue-message: >
|
|
20
20
|
There hasn't been any activity on this issue recently.
|
|
21
21
|
This issue has now been marked as stale and will be closed if no further activity occurs.
|
|
22
22
|
Please, update to the latest version and check if that solves the issue.
|
|
23
|
+
|
|
23
24
|
Thank you for your contributions!
|
|
24
25
|
close-issue-message: >
|
|
25
26
|
This issue was closed because it has been stalled for 30 days with no activity.
|
package/CODE_OF_CONDUCT.md
CHANGED
|
@@ -14,22 +14,22 @@ appearance, race, religion, or sexual identity and orientation.
|
|
|
14
14
|
Examples of behavior that contributes to creating a positive environment
|
|
15
15
|
include:
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
17
|
+
- Using welcoming and inclusive language
|
|
18
|
+
- Being respectful of differing viewpoints and experiences
|
|
19
|
+
- Gracefully accepting constructive criticism
|
|
20
|
+
- Focusing on what is best for the community
|
|
21
|
+
- Showing empathy towards other community members
|
|
22
22
|
|
|
23
23
|
Examples of unacceptable behavior by participants include:
|
|
24
24
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
25
|
+
- The use of sexualized language or imagery and unwelcome sexual attention or
|
|
26
|
+
advances
|
|
27
|
+
- Trolling, insulting/derogatory comments, and personal or political attacks
|
|
28
|
+
- Public or private harassment
|
|
29
|
+
- Publishing others' private information, such as a physical or electronic
|
|
30
|
+
address, without explicit permission
|
|
31
|
+
- Other conduct which could reasonably be considered inappropriate in a
|
|
32
|
+
professional setting
|
|
33
33
|
|
|
34
34
|
## Our Responsibilities
|
|
35
35
|
|