mirror of
https://github.com/aws-actions/configure-aws-credentials.git
synced 2026-09-04 06:15:07 +09:00
feat!: Initial v2 commit
* Implemented editorconfig * Switched to ESM * Switched to a TypeScript workflow * Switched to projen for project management * Major code refactor * TODO: need tests
This commit is contained in:
Generated
+131
@@ -0,0 +1,131 @@
|
||||
{
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "@aws-sdk/credential-provider-env",
|
||||
"type": "build"
|
||||
},
|
||||
{
|
||||
"name": "@jest/globals",
|
||||
"type": "build"
|
||||
},
|
||||
{
|
||||
"name": "@types/jest",
|
||||
"type": "build"
|
||||
},
|
||||
{
|
||||
"name": "@types/node",
|
||||
"version": "^14",
|
||||
"type": "build"
|
||||
},
|
||||
{
|
||||
"name": "@typescript-eslint/eslint-plugin",
|
||||
"version": "^5",
|
||||
"type": "build"
|
||||
},
|
||||
{
|
||||
"name": "@typescript-eslint/parser",
|
||||
"version": "^5",
|
||||
"type": "build"
|
||||
},
|
||||
{
|
||||
"name": "@vercel/ncc",
|
||||
"type": "build"
|
||||
},
|
||||
{
|
||||
"name": "aws-sdk-client-mock",
|
||||
"type": "build"
|
||||
},
|
||||
{
|
||||
"name": "eslint-config-prettier",
|
||||
"type": "build"
|
||||
},
|
||||
{
|
||||
"name": "eslint-import-resolver-node",
|
||||
"type": "build"
|
||||
},
|
||||
{
|
||||
"name": "eslint-import-resolver-typescript",
|
||||
"type": "build"
|
||||
},
|
||||
{
|
||||
"name": "eslint-plugin-import",
|
||||
"type": "build"
|
||||
},
|
||||
{
|
||||
"name": "eslint-plugin-prettier",
|
||||
"type": "build"
|
||||
},
|
||||
{
|
||||
"name": "eslint",
|
||||
"version": "^8",
|
||||
"type": "build"
|
||||
},
|
||||
{
|
||||
"name": "jest",
|
||||
"type": "build"
|
||||
},
|
||||
{
|
||||
"name": "jest-junit",
|
||||
"version": "^13",
|
||||
"type": "build"
|
||||
},
|
||||
{
|
||||
"name": "json-schema",
|
||||
"type": "build"
|
||||
},
|
||||
{
|
||||
"name": "npm-check-updates",
|
||||
"version": "^16",
|
||||
"type": "build"
|
||||
},
|
||||
{
|
||||
"name": "prettier",
|
||||
"type": "build"
|
||||
},
|
||||
{
|
||||
"name": "projen",
|
||||
"type": "build"
|
||||
},
|
||||
{
|
||||
"name": "projen-github-action-typescript",
|
||||
"type": "build"
|
||||
},
|
||||
{
|
||||
"name": "standard-version",
|
||||
"version": "^9",
|
||||
"type": "build"
|
||||
},
|
||||
{
|
||||
"name": "ts-jest",
|
||||
"type": "build"
|
||||
},
|
||||
{
|
||||
"name": "typescript",
|
||||
"type": "build"
|
||||
},
|
||||
{
|
||||
"name": "@types/responselike",
|
||||
"version": "1.0.0",
|
||||
"type": "override"
|
||||
},
|
||||
{
|
||||
"name": "got",
|
||||
"version": "12.3.1",
|
||||
"type": "override"
|
||||
},
|
||||
{
|
||||
"name": "@actions/core",
|
||||
"type": "runtime"
|
||||
},
|
||||
{
|
||||
"name": "@actions/github",
|
||||
"type": "runtime"
|
||||
},
|
||||
{
|
||||
"name": "@aws-sdk/client-sts",
|
||||
"version": "^3",
|
||||
"type": "runtime"
|
||||
}
|
||||
],
|
||||
"//": "~~ Generated by projen. To modify, edit .projenrc.js and run \"npx projen\"."
|
||||
}
|
||||
Generated
+23
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"files": [
|
||||
".eslintrc.yml",
|
||||
".gitattributes",
|
||||
".github/pull_request_template.md",
|
||||
".github/workflows/build.yml",
|
||||
".github/workflows/pull-request-lint.yml",
|
||||
".github/workflows/release.yml",
|
||||
".github/workflows/upgrade-main.yml",
|
||||
".gitignore",
|
||||
".mergify.yml",
|
||||
".npmignore",
|
||||
".prettierrc.json",
|
||||
".projen/deps.json",
|
||||
".projen/files.json",
|
||||
".projen/tasks.json",
|
||||
"action.yml",
|
||||
"LICENSE",
|
||||
"tsconfig.dev.json",
|
||||
"tsconfig.json"
|
||||
],
|
||||
"//": "~~ Generated by projen. To modify, edit .projenrc.js and run \"npx projen\"."
|
||||
}
|
||||
Generated
+252
@@ -0,0 +1,252 @@
|
||||
{
|
||||
"tasks": {
|
||||
"build": {
|
||||
"name": "build",
|
||||
"description": "Full release build",
|
||||
"steps": [
|
||||
{
|
||||
"spawn": "default"
|
||||
},
|
||||
{
|
||||
"spawn": "pre-compile"
|
||||
},
|
||||
{
|
||||
"spawn": "compile"
|
||||
},
|
||||
{
|
||||
"spawn": "post-compile"
|
||||
},
|
||||
{
|
||||
"spawn": "test"
|
||||
},
|
||||
{
|
||||
"spawn": "package"
|
||||
}
|
||||
]
|
||||
},
|
||||
"bump": {
|
||||
"name": "bump",
|
||||
"description": "Bumps version based on latest git tag and generates a changelog entry",
|
||||
"env": {
|
||||
"OUTFILE": "package.json",
|
||||
"CHANGELOG": "dist/changelog.md",
|
||||
"BUMPFILE": "dist/version.txt",
|
||||
"RELEASETAG": "dist/releasetag.txt",
|
||||
"RELEASE_TAG_PREFIX": "v"
|
||||
},
|
||||
"steps": [
|
||||
{
|
||||
"builtin": "release/bump-version"
|
||||
}
|
||||
],
|
||||
"condition": "! git log --oneline -1 | grep -q \"chore(release):\""
|
||||
},
|
||||
"clobber": {
|
||||
"name": "clobber",
|
||||
"description": "hard resets to HEAD of origin and cleans the local repo",
|
||||
"env": {
|
||||
"BRANCH": "$(git branch --show-current)"
|
||||
},
|
||||
"steps": [
|
||||
{
|
||||
"exec": "git checkout -b scratch",
|
||||
"name": "save current HEAD in \"scratch\" branch"
|
||||
},
|
||||
{
|
||||
"exec": "git checkout $BRANCH"
|
||||
},
|
||||
{
|
||||
"exec": "git fetch origin",
|
||||
"name": "fetch latest changes from origin"
|
||||
},
|
||||
{
|
||||
"exec": "git reset --hard origin/$BRANCH",
|
||||
"name": "hard reset to origin commit"
|
||||
},
|
||||
{
|
||||
"exec": "git clean -fdx",
|
||||
"name": "clean all untracked files"
|
||||
},
|
||||
{
|
||||
"say": "ready to rock! (unpushed commits are under the \"scratch\" branch)"
|
||||
}
|
||||
],
|
||||
"condition": "git diff --exit-code > /dev/null"
|
||||
},
|
||||
"compile": {
|
||||
"name": "compile",
|
||||
"description": "Only compile",
|
||||
"steps": [
|
||||
{
|
||||
"exec": "tsc --build"
|
||||
}
|
||||
]
|
||||
},
|
||||
"default": {
|
||||
"name": "default",
|
||||
"description": "Synthesize project files",
|
||||
"steps": [
|
||||
{
|
||||
"exec": "node .projenrc.cjs"
|
||||
}
|
||||
]
|
||||
},
|
||||
"eject": {
|
||||
"name": "eject",
|
||||
"description": "Remove projen from the project",
|
||||
"env": {
|
||||
"PROJEN_EJECTING": "true"
|
||||
},
|
||||
"steps": [
|
||||
{
|
||||
"spawn": "default"
|
||||
}
|
||||
]
|
||||
},
|
||||
"eslint": {
|
||||
"name": "eslint",
|
||||
"description": "Runs eslint against the codebase",
|
||||
"steps": [
|
||||
{
|
||||
"exec": "eslint --ext .ts,.tsx --fix --no-error-on-unmatched-pattern src test build-tools .projenrc.js"
|
||||
}
|
||||
]
|
||||
},
|
||||
"package": {
|
||||
"name": "package",
|
||||
"description": "Creates the distribution package",
|
||||
"steps": [
|
||||
{
|
||||
"exec": "ncc build --source-map --license licenses.txt"
|
||||
}
|
||||
]
|
||||
},
|
||||
"post-compile": {
|
||||
"name": "post-compile",
|
||||
"description": "Runs after successful compilation"
|
||||
},
|
||||
"post-upgrade": {
|
||||
"name": "post-upgrade",
|
||||
"description": "Runs after upgrading dependencies"
|
||||
},
|
||||
"pre-compile": {
|
||||
"name": "pre-compile",
|
||||
"description": "Prepare the project for compilation"
|
||||
},
|
||||
"release": {
|
||||
"name": "release",
|
||||
"description": "Prepare a release from \"main\" branch",
|
||||
"env": {
|
||||
"RELEASE": "true",
|
||||
"MAJOR": "2",
|
||||
"RELEASE_TAG_PREFIX": "v"
|
||||
},
|
||||
"steps": [
|
||||
{
|
||||
"exec": "rm -fr dist"
|
||||
},
|
||||
{
|
||||
"spawn": "bump"
|
||||
},
|
||||
{
|
||||
"spawn": "build"
|
||||
},
|
||||
{
|
||||
"spawn": "unbump"
|
||||
},
|
||||
{
|
||||
"exec": "git diff --ignore-space-at-eol --exit-code"
|
||||
}
|
||||
]
|
||||
},
|
||||
"test": {
|
||||
"name": "test",
|
||||
"description": "Run tests",
|
||||
"steps": [
|
||||
{
|
||||
"exec": "jest --passWithNoTests --all --coverageProvider=v8 --updateSnapshot"
|
||||
},
|
||||
{
|
||||
"spawn": "eslint"
|
||||
}
|
||||
]
|
||||
},
|
||||
"test:watch": {
|
||||
"name": "test:watch",
|
||||
"description": "Run jest in watch mode",
|
||||
"steps": [
|
||||
{
|
||||
"exec": "jest --watch"
|
||||
}
|
||||
]
|
||||
},
|
||||
"unbump": {
|
||||
"name": "unbump",
|
||||
"description": "Restores version to 0.0.0",
|
||||
"env": {
|
||||
"OUTFILE": "package.json",
|
||||
"CHANGELOG": "dist/changelog.md",
|
||||
"BUMPFILE": "dist/version.txt",
|
||||
"RELEASETAG": "dist/releasetag.txt",
|
||||
"RELEASE_TAG_PREFIX": "v"
|
||||
},
|
||||
"steps": [
|
||||
{
|
||||
"builtin": "release/reset-version"
|
||||
}
|
||||
]
|
||||
},
|
||||
"upgrade": {
|
||||
"name": "upgrade",
|
||||
"description": "upgrade dependencies",
|
||||
"env": {
|
||||
"CI": "0"
|
||||
},
|
||||
"steps": [
|
||||
{
|
||||
"exec": "npm update npm-check-updates"
|
||||
},
|
||||
{
|
||||
"exec": "npm-check-updates --dep dev --upgrade --target=minor"
|
||||
},
|
||||
{
|
||||
"exec": "npm-check-updates --dep optional --upgrade --target=minor"
|
||||
},
|
||||
{
|
||||
"exec": "npm-check-updates --dep peer --upgrade --target=minor"
|
||||
},
|
||||
{
|
||||
"exec": "npm-check-updates --dep prod --upgrade --target=minor"
|
||||
},
|
||||
{
|
||||
"exec": "npm-check-updates --dep bundle --upgrade --target=minor"
|
||||
},
|
||||
{
|
||||
"exec": "npm install"
|
||||
},
|
||||
{
|
||||
"exec": "npm update"
|
||||
},
|
||||
{
|
||||
"exec": "npx projen"
|
||||
},
|
||||
{
|
||||
"spawn": "post-upgrade"
|
||||
}
|
||||
]
|
||||
},
|
||||
"watch": {
|
||||
"name": "watch",
|
||||
"description": "Watch & compile in the background",
|
||||
"steps": [
|
||||
{
|
||||
"exec": "tsc --build -w"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"env": {
|
||||
"PATH": "$(npx -c \"node -e \\\"console.log(process.env.PATH)\\\"\")"
|
||||
},
|
||||
"//": "~~ Generated by projen. To modify, edit .projenrc.js and run \"npx projen\"."
|
||||
}
|
||||
Reference in New Issue
Block a user