Skip to content

Commit dc74686

Browse files
committed
feat: add setup-apt package for all the apt utils
1 parent 1704d84 commit dc74686

33 files changed

+680
-615
lines changed

dist/actions/setup-cpp.js

Lines changed: 21 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/actions/setup-cpp.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/legacy/setup-cpp.js

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/legacy/setup-cpp.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/modern/setup-cpp.js

Lines changed: 21 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/modern/setup-cpp.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lefthook.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
pre-commit:
22
parallel: false
33
commands:
4-
lint:
5-
run: pnpm run lint
4+
test.lint:
5+
run: pnpm run test.lint
66
build:
77
run: pnpm run clean && pnpm i && pnpm run build -- --no-color && git add ./dist

package.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"build.babel": "babel ./dist --out-dir dist --plugins @upleveled/babel-plugin-remove-node-prefix --plugins @babel/plugin-transform-private-methods --compact --no-babelrc --source-maps true",
3333
"build.modern": "shx cp -r ./dist/actions/* ./dist/modern",
3434
"bump": "ncu -u -x numerous,execa,prettier,@types/node,eslint,@types/eslint && pnpm update && pnpx typesync && pnpm run clean",
35-
"clean": "shx rm -rf ./dist ./exe ./packages/*/dist/ ./.parcel-cache && shx mkdir -p ./dist/legacy ./dist/actions ./dist/modern ",
35+
"clean": "shx rm -rf ./dist ./exe ./.parcel-cache && shx mkdir -p ./dist/legacy ./dist/actions ./dist/modern ",
3636
"copy.matchers": "run-p copy.matchers.legacy copy.matchers.actions",
3737
"copy.matchers.legacy": "shx cp ./src/gcc/gcc_matcher.json ./dist/legacy/ && shx cp ./src/msvc/msvc_matcher.json ./dist/legacy/ && shx cp ./src/python/python_matcher.json ./dist/legacy/ && shx cp ./src/llvm/llvm_matcher.json ./dist/legacy/",
3838
"copy.matchers.actions": "shx cp ./src/gcc/gcc_matcher.json ./dist/actions/ && shx cp ./src/msvc/msvc_matcher.json ./dist/actions/ && shx cp ./src/python/python_matcher.json ./dist/actions/ && shx cp ./src/llvm/llvm_matcher.json ./dist/actions/",
@@ -86,6 +86,7 @@
8686
"escape-path-with-spaces": "^1.0.2",
8787
"escape-quotes": "^1.0.2",
8888
"escape-string-regexp": "^5.0.0",
89+
"setup-apt": "workspace:*",
8990
"eslint": "^8.57.0",
9091
"eslint-config-atomic": "^1.22.1",
9192
"exec-powershell": "workspace:*",
@@ -129,12 +130,14 @@
129130
"productionDependencies": [
130131
"@actions/core",
131132
"@actions/exec",
133+
"@actions/http-client",
132134
"@actions/io",
133135
"@actions/tool-cache",
136+
"@iarna/toml",
134137
"admina",
135138
"ci-info",
136139
"ci-log",
137-
"os-env",
140+
"diagnostics_channel",
138141
"escape-path-with-spaces",
139142
"escape-quotes",
140143
"escape-string-regexp",
@@ -145,18 +148,19 @@
145148
"mri",
146149
"msvc-dev-cmd",
147150
"numerous",
151+
"os-env",
148152
"path-exists",
149153
"patha",
150154
"retry-as-promised",
151155
"semver",
156+
"setup-apt",
152157
"setup-python",
153158
"simple-update-notifier",
154159
"time-delta",
155160
"ubuntu-version",
156161
"untildify-user",
157-
"web-streams-polyfill",
158162
"util.types",
159-
"diagnostics_channel"
163+
"web-streams-polyfill"
160164
],
161165
"engines": {
162166
"node": ">=12.x",

packages/setup-apt/.eslintrc.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "../../.eslintrc.json"
3+
}

packages/setup-apt/package.json

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{
2+
"name": "setup-apt",
3+
"version": "1.0.0",
4+
"description": "Setup apt packages and repositories in Debian/Ubuntu-based distributions",
5+
"homepage": "https://github.com/aminya/setup-cpp",
6+
"license": "Apache-2.0",
7+
"author": "Amin Yahyaabadi",
8+
"main": "./dist/index.js",
9+
"source": "./src/index.ts",
10+
"scripts": {
11+
"build": "tsc --pretty",
12+
"lint.tsc": "tsc --noEmit --pretty",
13+
"lint.eslint": "eslint **/*.{ts,tsx,js,jsx,cjs,mjs,json,yaml} --no-error-on-unmatched-pattern --cache --cache-location ./.cache/eslint/ --fix"
14+
},
15+
"dependencies": {
16+
"@types/node": "^12",
17+
"admina": "^1.0.1",
18+
"ci-info": "^4.0.0",
19+
"path-exists": "^5.0.0",
20+
"ci-log": "workspace:*",
21+
"os-env": "workspace:*",
22+
"which": "4.0.0",
23+
"execa": "^7.2.0",
24+
"escape-string-regexp": "^5.0.0"
25+
},
26+
"engines": {
27+
"node": ">=12"
28+
},
29+
"keywords": [
30+
"setup",
31+
"apt",
32+
"apt-get",
33+
"repository",
34+
"add-apt-repository",
35+
"apt-cache",
36+
"aptitude",
37+
"install",
38+
"setup-apt",
39+
"repositories",
40+
"linux",
41+
"ubuntu",
42+
"debian",
43+
"package",
44+
"apt-key"
45+
],
46+
"devDependencies": {}
47+
}

0 commit comments

Comments
 (0)