mirror of
https://github.com/morten-olsen/with-ssm.git
synced 2026-02-08 00:46:23 +01:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
24e8726e41 | ||
|
|
efa489d524 | ||
|
|
1321ea4748 |
15
.github/workflows/pipeline-default.yaml
vendored
15
.github/workflows/pipeline-default.yaml
vendored
@@ -12,13 +12,13 @@ on:
|
|||||||
env:
|
env:
|
||||||
environment: test
|
environment: test
|
||||||
release_channel: latest
|
release_channel: latest
|
||||||
DO_NOT_TRACK: '1'
|
DO_NOT_TRACK: "1"
|
||||||
NODE_VERSION: '23.x'
|
NODE_VERSION: "23.x"
|
||||||
NODE_REGISTRY: 'https://registry.npmjs.org'
|
NODE_REGISTRY: "https://registry.npmjs.org"
|
||||||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||||
DOCKER_REGISTRY: ghcr.io
|
DOCKER_REGISTRY: ghcr.io
|
||||||
IMAGE_NAME: ${{ github.repository }}
|
IMAGE_NAME: ${{ github.repository }}
|
||||||
PNPM_VERSION: 10.6.0
|
PNPM_VERSION: 10.17.0
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
@@ -56,8 +56,8 @@ jobs:
|
|||||||
|
|
||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: '${{ env.NODE_VERSION }}'
|
node-version: "${{ env.NODE_VERSION }}"
|
||||||
registry-url: '${{ env.NODE_REGISTRY }}'
|
registry-url: "${{ env.NODE_REGISTRY }}"
|
||||||
|
|
||||||
- uses: pnpm/action-setup@v4
|
- uses: pnpm/action-setup@v4
|
||||||
name: Install pnpm
|
name: Install pnpm
|
||||||
@@ -82,4 +82,5 @@ jobs:
|
|||||||
node ./scripts/set-version.mjs $(git describe --tag --abbrev=0)
|
node ./scripts/set-version.mjs $(git describe --tag --abbrev=0)
|
||||||
pnpm publish -r --no-git-checks --access public
|
pnpm publish -r --no-git-checks --access public
|
||||||
env:
|
env:
|
||||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||||
|
|
||||||
|
|||||||
10
package.json
10
package.json
@@ -16,21 +16,21 @@
|
|||||||
"dist"
|
"dist"
|
||||||
],
|
],
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@aws-sdk/client-ssm": "^3.901.0",
|
"@aws-sdk/client-ssm": "^3.947.0",
|
||||||
"@aws-sdk/client-sts": "^3.901.0",
|
"@aws-sdk/client-sts": "^3.947.0",
|
||||||
"@dotenvx/dotenvx": "^1.51.0",
|
"@dotenvx/dotenvx": "^1.51.1",
|
||||||
"@eslint/eslintrc": "3.3.1",
|
"@eslint/eslintrc": "3.3.1",
|
||||||
"@eslint/js": "9.36.0",
|
"@eslint/js": "9.36.0",
|
||||||
"@pnpm/find-workspace-packages": "6.0.9",
|
"@pnpm/find-workspace-packages": "6.0.9",
|
||||||
"@types/node": "24.6.2",
|
"@types/node": "24.6.2",
|
||||||
"@types/yargs": "^17.0.33",
|
"@types/yargs": "^17.0.35",
|
||||||
"@vercel/ncc": "^0.38.4",
|
"@vercel/ncc": "^0.38.4",
|
||||||
"@vitest/coverage-v8": "3.2.4",
|
"@vitest/coverage-v8": "3.2.4",
|
||||||
"eslint": "9.36.0",
|
"eslint": "9.36.0",
|
||||||
"eslint-config-prettier": "10.1.8",
|
"eslint-config-prettier": "10.1.8",
|
||||||
"eslint-plugin-import": "2.32.0",
|
"eslint-plugin-import": "2.32.0",
|
||||||
"eslint-plugin-prettier": "5.5.4",
|
"eslint-plugin-prettier": "5.5.4",
|
||||||
"execa": "^9.6.0",
|
"execa": "^9.6.1",
|
||||||
"prettier": "3.6.2",
|
"prettier": "3.6.2",
|
||||||
"typescript": "5.9.3",
|
"typescript": "5.9.3",
|
||||||
"typescript-eslint": "8.45.0",
|
"typescript-eslint": "8.45.0",
|
||||||
|
|||||||
1665
pnpm-lock.yaml
generated
1665
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
2
pnpm-workspace.yaml
Normal file
2
pnpm-workspace.yaml
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
onlyBuiltDependencies:
|
||||||
|
- esbuild
|
||||||
@@ -19,7 +19,7 @@ const argv = await yargs(hideBin(process.argv))
|
|||||||
alias: 'f',
|
alias: 'f',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
description: 'The file to use for environment variables. (multiple files can be specified)',
|
description: 'The file to use for environment variables. (multiple files can be specified)',
|
||||||
default: ['.env', '.env.with-ssm'],
|
default: ['.env.with-ssm', '.env'],
|
||||||
})
|
})
|
||||||
.demandCommand(1, 'Error: You must provide a command to execute after --')
|
.demandCommand(1, 'Error: You must provide a command to execute after --')
|
||||||
.alias('h', 'help')
|
.alias('h', 'help')
|
||||||
@@ -36,7 +36,10 @@ if (!command) {
|
|||||||
|
|
||||||
const files = argv.file && Array.isArray(argv.file) ? argv.file : [argv.file];
|
const files = argv.file && Array.isArray(argv.file) ? argv.file : [argv.file];
|
||||||
const hostEnv = await getEnv(files);
|
const hostEnv = await getEnv(files);
|
||||||
const env = await replaceParams(hostEnv);
|
const env = await replaceParams(hostEnv, {
|
||||||
|
region: argv.region,
|
||||||
|
profile: argv.profile,
|
||||||
|
});
|
||||||
|
|
||||||
exec({
|
exec({
|
||||||
command,
|
command,
|
||||||
|
|||||||
Reference in New Issue
Block a user