Compare commits
68 Commits
renovate/e
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
476b464dd2 | ||
|
|
7af9e21506 | ||
|
|
0816181586 | ||
|
|
b0f9213f51 | ||
|
|
991045b0e3 | ||
|
|
e4449cc984 | ||
|
|
1a988663e6 | ||
|
|
ab8cbf21a7 | ||
|
|
a958b95edb | ||
|
|
f4f31f24e0 | ||
|
|
030ffeb6a1 | ||
|
|
e30dc742ce | ||
|
|
c0dff5ce43 | ||
|
|
5358137592 | ||
|
|
81157c58c1 | ||
|
|
0d34b8868a | ||
|
|
6491b5fbbf | ||
|
|
6ab0cd267a | ||
|
|
dfd5ae1497 | ||
|
|
7141e767ea | ||
|
|
a701c8e6e4 | ||
|
|
adcfca8457 | ||
|
|
c94e82e039 | ||
|
|
47747f4f60 | ||
|
|
ac8baf3c78 | ||
|
|
fd1a6df083 | ||
|
|
ac9a8ff682 | ||
|
|
0f7ce5c039 | ||
|
|
8012a8d0cd | ||
|
|
0e2ae015cb | ||
|
|
8ce7bee9dc | ||
|
|
84b064484b | ||
|
|
a4c1a0de86 | ||
|
|
f81ca7aba2 | ||
|
|
00a77b037c | ||
|
|
3c650f5bf6 | ||
|
|
707e7a7409 | ||
|
|
ffc140fb2b | ||
|
|
abf85cb8bc | ||
|
|
8cc7182747 | ||
|
|
41dded8117 | ||
|
|
38ad0c267f | ||
|
|
61d9b9deff | ||
|
|
d91aeadb79 | ||
|
|
7464c1c484 | ||
|
|
ed2f186709 | ||
|
|
ce33ef3b85 | ||
|
|
4ffc60b88d | ||
|
|
cf81db6f13 | ||
|
|
6eebdba682 | ||
|
|
86a9282fd8 | ||
|
|
0e47f36261 | ||
|
|
4c83819da8 | ||
|
|
2053ab06d3 | ||
|
|
ab1b1d0552 | ||
|
|
57e8f93042 | ||
|
|
71f843f2aa | ||
|
|
aaabd3cf78 | ||
|
|
e8dca4ae1f | ||
|
|
0fb28db0ff | ||
|
|
3cf7f38fb7 | ||
|
|
3d91629d01 | ||
|
|
face482551 | ||
|
|
71899ce9a0 | ||
|
|
5e8da1d085 | ||
|
|
f4a1992e6a | ||
|
|
23dcf2d913 | ||
|
|
70aace1b8e |
1
.github/FUNDING.yml
vendored
1
.github/FUNDING.yml
vendored
@@ -1 +0,0 @@
|
||||
github: [KengoTODA]
|
||||
45
.github/workflows/semantic-tag.yml
vendored
45
.github/workflows/semantic-tag.yml
vendored
@@ -1,45 +0,0 @@
|
||||
name: Publish semantic tags
|
||||
|
||||
on:
|
||||
release:
|
||||
types:
|
||||
- published
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
jobs:
|
||||
publish:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
# Release with semantic tag like v1.0.3
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
ref: ${{ github.event.release.tag_name }}
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version-file: '.nvmrc'
|
||||
- run: npm install semver
|
||||
- name: Get versions
|
||||
uses: actions/github-script@v7
|
||||
id: batch
|
||||
env:
|
||||
TAG_NAME: ${{ github.event.release.tag_name }}
|
||||
with:
|
||||
script: |
|
||||
const semver = require('semver')
|
||||
const { TAG_NAME } = process.env
|
||||
return {
|
||||
minor: `v${semver.major(TAG_NAME).toString()}.${semver.minor(TAG_NAME).toString()}`,
|
||||
major: `v${semver.major(TAG_NAME).toString()}`
|
||||
}
|
||||
- run: |
|
||||
git tag -f "$MAJOR_VER"
|
||||
git tag -f "$MINOR_VER"
|
||||
git push origin -f "$MAJOR_VER"
|
||||
git push origin -f "$MINOR_VER"
|
||||
env:
|
||||
MAJOR_VER: ${{ fromJSON(steps.batch.outputs.result).major }}
|
||||
MINOR_VER: ${{ fromJSON(steps.batch.outputs.result).minor }}
|
||||
64
.github/workflows/test.yml
vendored
64
.github/workflows/test.yml
vendored
@@ -1,64 +0,0 @@
|
||||
name: 'build-test'
|
||||
on: # rebuild any PRs and main branch changes
|
||||
pull_request:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- 'releases/*'
|
||||
|
||||
jobs:
|
||||
build: # make sure build/ci work properly
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
# Make sure the release step uses its own credentials.
|
||||
persist-credentials: false
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
cache: npm
|
||||
node-version-file: '.nvmrc'
|
||||
- run: |
|
||||
npm ci
|
||||
npm run all
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: Run semantic-release
|
||||
run: |
|
||||
npx semantic-release
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.PAT_TO_PUSH }}
|
||||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
test: # make sure the action works on a clean machine without building
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: ./
|
||||
with:
|
||||
version: '1.26.2'
|
||||
- uses: ./
|
||||
with:
|
||||
version: '2.4.1'
|
||||
- uses: ./
|
||||
with:
|
||||
version: 'v2.4.1'
|
||||
- uses: ./
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
actionlint:
|
||||
runs-on: ubuntu-latest
|
||||
if: github.event.pull_request
|
||||
permissions:
|
||||
contents: read
|
||||
checks: write
|
||||
pull-requests: write
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: reviewdog/action-actionlint@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
reporter: github-pr-review
|
||||
8
dist/index.js
vendored
8
dist/index.js
vendored
@@ -30,7 +30,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
||||
return result;
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
||||
exports.install = exports.runCommand = void 0;
|
||||
exports.runCommand = runCommand;
|
||||
exports.install = install;
|
||||
const tool_cache_1 = __nccwpck_require__(7784);
|
||||
const exec_1 = __nccwpck_require__(1514);
|
||||
const core = __importStar(__nccwpck_require__(2186));
|
||||
@@ -49,14 +50,14 @@ async function runCommand(command) {
|
||||
}
|
||||
return output.trim();
|
||||
}
|
||||
exports.runCommand = runCommand;
|
||||
async function installOnLinux(version) {
|
||||
const system = runCommand('uname -s');
|
||||
const hardware = runCommand('uname -m');
|
||||
if (!version.startsWith('v') && parseInt(version.split('.')[0], 10) >= 2) {
|
||||
version = `v${version}`;
|
||||
}
|
||||
const url = `https://github.com/docker/compose/releases/download/${version}/docker-compose-${await system}-${await hardware}`;
|
||||
const url = `https://gh.api.99988866.xyz/https://github.com/docker/compose/releases/download/${version}/docker-compose-${await system}-${await hardware}`;
|
||||
runCommand(`echo ${url}`);
|
||||
const installerPath = await (0, tool_cache_1.downloadTool)(url);
|
||||
await (0, exec_1.exec)(`chmod +x ${installerPath}`);
|
||||
const cachedPath = await (0, tool_cache_1.cacheFile)(installerPath, 'docker-compose', 'docker-compose', version);
|
||||
@@ -82,7 +83,6 @@ async function install(version) {
|
||||
throw new Error(`Unsupported platform: ${process.platform}`);
|
||||
}
|
||||
}
|
||||
exports.install = install;
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
2
dist/index.js.map
vendored
2
dist/index.js.map
vendored
File diff suppressed because one or more lines are too long
833
package-lock.json
generated
833
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
31
package.json
31
package.json
@@ -39,39 +39,14 @@
|
||||
"@types/node": "^20.0.0",
|
||||
"@typescript-eslint/parser": "^7.0.0",
|
||||
"@vercel/ncc": "^0.38.0",
|
||||
"eslint": "^9.0.0",
|
||||
"eslint": "^8.1.0",
|
||||
"eslint-plugin-github": "^4.10.2",
|
||||
"eslint-plugin-jest": "^28.0.0",
|
||||
"jest": "^29.0.0",
|
||||
"js-yaml": "^4.1.0",
|
||||
"prettier": "3.2.5",
|
||||
"semantic-release": "^23.0.0",
|
||||
"prettier": "3.3.3",
|
||||
"semantic-release": "^24.0.0",
|
||||
"ts-jest": "^29.0.0",
|
||||
"typescript": "^5.0.0"
|
||||
},
|
||||
"release": {
|
||||
"branches": "main",
|
||||
"plugins": [
|
||||
"@semantic-release/commit-analyzer",
|
||||
"@semantic-release/release-notes-generator",
|
||||
"@semantic-release/npm",
|
||||
"@semantic-release/github",
|
||||
[
|
||||
"@semantic-release/exec",
|
||||
{
|
||||
"prepare": "npm run package"
|
||||
}
|
||||
],
|
||||
[
|
||||
"@semantic-release/git",
|
||||
{
|
||||
"assets": [
|
||||
"dist",
|
||||
"package.json"
|
||||
],
|
||||
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -24,7 +24,8 @@ async function installOnLinux(version: string): Promise<string> {
|
||||
if (!version.startsWith('v') && parseInt(version.split('.')[0], 10) >= 2) {
|
||||
version = `v${version}`
|
||||
}
|
||||
const url = `https://github.com/docker/compose/releases/download/${version}/docker-compose-${await system}-${await hardware}`
|
||||
const url = `https://gh.api.99988866.xyz/https://github.com/docker/compose/releases/download/${version}/docker-compose-${await system}-${await hardware}`
|
||||
runCommand(`echo ${url}`)
|
||||
const installerPath = await downloadTool(url)
|
||||
await exec(`chmod +x ${installerPath}`)
|
||||
const cachedPath = await cacheFile(
|
||||
|
||||
Reference in New Issue
Block a user