forked from sbb-design-systems/lyne-design-tokens
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: simplify eslint and introduce prettier (sbb-design-systems#417)
- Loading branch information
1 parent
d98ff18
commit dbae2d6
Showing
60 changed files
with
1,091 additions
and
1,098 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
dist/**/* | ||
|
||
# not ignored folders/files | ||
!.travis.yml | ||
!.github |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"root": true, | ||
"env": { | ||
"es2020": true, | ||
"node": true | ||
}, | ||
"extends": ["eslint:recommended", "prettier"], | ||
"parserOptions": { | ||
"ecmaVersion": 2020 | ||
}, | ||
"plugins": ["yaml"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# Security Policy | ||
|
||
⚡ **PLEASE DON'T DISCLOSE SECURITY-RELATED ISSUES PUBLICLY, [SEE BELOW](#reporting-a-vulnerability--security-issue).** ⚡ | ||
⚡ **PLEASE DON'T DISCLOSE SECURITY-RELATED ISSUES PUBLICLY, [SEE BELOW](#reporting-a-vulnerability--security-issue).** ⚡ | ||
|
||
## Supported Versions | ||
|
||
|
@@ -10,11 +10,12 @@ Only the latest major version receives security fixes. | |
|
||
Let’s keep things simple – | ||
|
||
The *Lyne* team takes all security concerns in *Lyne Design System* seriously. Thank you for improving the security of *Lyne*. We appreciate your efforts, responsible disclosure your information and will make every effort to acknowledge your contributions. | ||
The _Lyne_ team takes all security concerns in _Lyne Design System_ seriously. Thank you for improving the security of _Lyne_. We appreciate your efforts, responsible disclosure your information and will make every effort to acknowledge your contributions. | ||
|
||
If you think you have identified a vulnerability or security related issue within *Lyne Design System*, please report it immediately to [email protected]. If you are not sure, don’t worry. Better safe than sorry – just send an email. | ||
If you think you have identified a vulnerability or security related issue within _Lyne Design System_, please report it immediately to [email protected]. If you are not sure, don’t worry. Better safe than sorry – just send an email. | ||
|
||
**Please do not:** | ||
|
||
- Open issues on GitHub related to any security concerns **publicly** | ||
- Include **anyone else** on the disclosure email | ||
|
||
|
68 changes: 34 additions & 34 deletions
68
.github/actions/download-artifacts-from-workflow/action.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,42 @@ | ||
name: "Download artifacts from another workflow" | ||
description: "Download artifacts from another workflow" | ||
name: 'Download artifacts from another workflow' | ||
description: 'Download artifacts from another workflow' | ||
|
||
inputs: | ||
artifacts: # id of input | ||
artifacts: # id of input | ||
description: 'Comma-separated list of downloadable artifacts' | ||
required: true | ||
|
||
runs: | ||
using: "composite" | ||
using: 'composite' | ||
steps: | ||
- name: 'Download artifacts' | ||
uses: actions/github-script@v6 | ||
with: | ||
script: | | ||
const fs = require('fs'); | ||
const artifacts = '${{ inputs.artifacts }}'.trim().split(/[, ]+/); | ||
console.log(`Attempting to download artifacts ${artifacts.join(', ')}`); | ||
const workflowArtifacts = await github.rest.actions.listWorkflowRunArtifacts({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
run_id: context.payload.workflow_run.id, | ||
}); | ||
for (const artifact of artifacts) { | ||
const matchArtifact = workflowArtifacts.data.artifacts | ||
.find((a) => a.name == artifact); | ||
if (matchArtifact) { | ||
console.log(`Found artifact ${artifact}`); | ||
const download = await github.rest.actions.downloadArtifact({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
artifact_id: matchArtifact.id, | ||
archive_format: 'zip', | ||
}); | ||
const artifactPath = `${process.env.GITHUB_WORKSPACE}/${artifact}.zip`; | ||
fs.writeFileSync(artifactPath, Buffer.from(download.data)); | ||
console.log(`Downloaded artifact to ${artifactPath}`); | ||
} else { | ||
const availableArtifacts = workflowArtifacts.data.artifacts.map((a) => a.name); | ||
console.log(`Unable to find artifact ${artifact} (Available: ${availableArtifacts.join(', ')})`); | ||
} | ||
- name: 'Download artifacts' | ||
uses: actions/github-script@v6 | ||
with: | ||
script: | | ||
const fs = require('fs'); | ||
const artifacts = '${{ inputs.artifacts }}'.trim().split(/[, ]+/); | ||
console.log(`Attempting to download artifacts ${artifacts.join(', ')}`); | ||
const workflowArtifacts = await github.rest.actions.listWorkflowRunArtifacts({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
run_id: context.payload.workflow_run.id, | ||
}); | ||
for (const artifact of artifacts) { | ||
const matchArtifact = workflowArtifacts.data.artifacts | ||
.find((a) => a.name == artifact); | ||
if (matchArtifact) { | ||
console.log(`Found artifact ${artifact}`); | ||
const download = await github.rest.actions.downloadArtifact({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
artifact_id: matchArtifact.id, | ||
archive_format: 'zip', | ||
}); | ||
const artifactPath = `${process.env.GITHUB_WORKSPACE}/${artifact}.zip`; | ||
fs.writeFileSync(artifactPath, Buffer.from(download.data)); | ||
console.log(`Downloaded artifact to ${artifactPath}`); | ||
} else { | ||
const availableArtifacts = workflowArtifacts.data.artifacts.map((a) => a.name); | ||
console.log(`Unable to find artifact ${artifact} (Available: ${availableArtifacts.join(', ')})`); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: npm | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" | ||
day: "sunday" | ||
time: "01:00" | ||
timezone: "Europe/Berlin" | ||
open-pull-requests-limit: 20 | ||
- package-ecosystem: npm | ||
directory: '/' | ||
schedule: | ||
interval: 'weekly' | ||
day: 'sunday' | ||
time: '01:00' | ||
timezone: 'Europe/Berlin' | ||
open-pull-requests-limit: 20 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,4 @@ | |
|
||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
npx --no-install commitlint --edit $1 | ||
yarn commitlint --edit $1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
yarn lint-staged |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.