-
Notifications
You must be signed in to change notification settings - Fork 227
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into fail-earlier-on-windows
- Loading branch information
Showing
1,659 changed files
with
71,023 additions
and
62,131 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,2 +1,6 @@ | ||
node_modules | ||
packages/*/lib | ||
**/dist | ||
**/tmp | ||
tmp | ||
dst | ||
packages/ci/src/interfaces/kolkrabbi.ts |
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 @@ | ||
**/lib |
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,65 @@ | ||
{ | ||
"extends": "standard", | ||
"env": { | ||
"mocha": true | ||
} | ||
// Global settings | ||
"plugins": ["import"], | ||
"extends": [ | ||
"oclif", | ||
"oclif-typescript" | ||
], | ||
"rules": { | ||
"@typescript-eslint/explicit-module-boundary-types": "off", | ||
"@typescript-eslint/no-empty-function": "off", | ||
"@typescript-eslint/no-unused-vars": "warn", // TODO: fix issues and turn this back on | ||
"camelcase":"off", | ||
"import/no-unresolved": "error", | ||
"indent": ["error", 2, {"MemberExpression": 1}], | ||
"func-names":"warn", // TODO: fix issues and turn this back on | ||
"no-await-in-loop": "warn", // TODO: fix issues and turn this back on | ||
"no-constant-condition": ["error", {"checkLoops": false }], | ||
"no-else-return": "warn", // TODO: fix issues and turn this back on | ||
"no-negated-condition":"warn", // TODO: fix issues and turn this back on | ||
"no-process-exit": "off", | ||
"no-promise-executor-return": "warn", // TODO: fix issues and turn this back on | ||
"no-prototype-builtins": "warn", // TODO: fix issues and turn this back on | ||
"no-return-await":"warn", // TODO: fix issues and turn this back on | ||
"node/no-deprecated-api": "warn", // TODO: fix issues and turn this back on | ||
"node/no-missing-import": "off", // using import/no-unresolved instead | ||
"radix":"warn", // TODO: fix issues and turn this back on | ||
"wrap-iife": "warn", // TODO: fix issues and turn this back on | ||
"unicorn/better-regex": "off", // TODO: fix issues and turn this back on | ||
"unicorn/consistent-function-scoping": "off", // TODO: fix issues and turn this back on | ||
"unicorn/filename-case": "off", | ||
"unicorn/import-style": "off", | ||
"unicorn/no-abusive-eslint-disable": "off", | ||
"unicorn/no-array-for-each": "off", | ||
"unicorn/no-array-reduce": "warn", // TODO: fix issues and turn this back on | ||
"unicorn/no-lonely-if":"off", | ||
"unicorn/no-process-exit": "off", | ||
"unicorn/no-useless-undefined": "warn", // TODO: fix issues and turn this back on | ||
"unicorn/numeric-separators-style":"off", | ||
"unicorn/prefer-array-some": "warn", // TODO: fix issues and turn this back on | ||
"unicorn/prefer-module": "off", | ||
"unicorn/prefer-node-protocol": "off", | ||
"unicorn/prefer-object-from-entries": "warn", // TODO: fix issues and turn this back on | ||
"unicorn/prefer-regexp-test": "off", | ||
"unicorn/prefer-spread": "off", // TODO: fix issues and turn this back on | ||
"unicorn/prefer-string-slice": "warn", // TODO: fix issues and turn this back on | ||
"unicorn/prefer-ternary": "off" // TODO: fix issues and turn this back on | ||
}, | ||
|
||
// Typescript settings | ||
"overrides": [ | ||
{ | ||
"files": ["**/*{.ts,tsx}"], | ||
"settings": { | ||
"import/parsers": { | ||
"@typescript-eslint/parser": [".ts", ".tsx"] | ||
}, | ||
"import/resolver": { | ||
"typescript": { | ||
"project": "packages/*/tsconfig.json" | ||
} | ||
} | ||
} | ||
} | ||
] | ||
} |
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
/package-lock.json | ||
node_modules |
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,18 @@ | ||
name: get version and channel | ||
description: read package.json and return the full version and version-suffix/channel (ex 'beta' if x.y.z-beta.0) | ||
|
||
inputs: | ||
path: | ||
description: path to the package.json | ||
required: false | ||
default: "package.json" | ||
|
||
outputs: | ||
channel: | ||
description: version channel (ex 'beta' if 1.2.3-beta.0 ), if exists in package.json | ||
version: | ||
description: full version from package.json | ||
|
||
runs: | ||
using: 'node16' | ||
main: 'dist/index.js' |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
.github/actions/get-version-and-channel/dist/sourcemap-register.js
Large diffs are not rendered by default.
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,30 @@ | ||
const core = require('@actions/core') | ||
const {readFileSync} = require('fs') | ||
|
||
function run() { | ||
/* !IMPORTANT: You must run `npm run build` in this directory after all changes. Look to ./package.json */ | ||
|
||
try { | ||
const buffer = readFileSync(core.getInput('path')) | ||
const pjson = JSON.parse(buffer.toString()) | ||
if (pjson?.version) { | ||
const {version} = pjson | ||
const distTag = version.split('-')[1] || '' | ||
// strip build: 'beta.5' => 'beta' | ||
const channel = distTag.split('.')[0] | ||
|
||
core.setOutput('channel', channel) | ||
core.setOutput('version', version) | ||
} else { | ||
core.setFailed('no version found :(') | ||
} | ||
} catch (err) { | ||
if (err instanceof Error) { | ||
core.setFailed(err.message) | ||
return | ||
} | ||
core.setFailed('unknown error') | ||
} | ||
} | ||
|
||
run() |
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,17 @@ | ||
{ | ||
"name": "get-version-and-channel", | ||
"version": "1.0.0", | ||
"main": "index.js", | ||
"scripts": { | ||
"build": "ncc build index.js -o dist --source-map --minify" | ||
}, | ||
"license": "ISC", | ||
"dependencies": { | ||
"@actions/core": "^1.10.0" | ||
}, | ||
"devDependencies": { | ||
"@vercel/ncc": "^0.36.1", | ||
"eslint": "^8.37.0", | ||
"jest": "^29.5.0" | ||
} | ||
} |
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.