Skip to content
This repository has been archived by the owner on Nov 17, 2024. It is now read-only.

Commit

Permalink
fix(action): provide inputs as env variables
Browse files Browse the repository at this point in the history
  • Loading branch information
El-Fitz committed Aug 23, 2024
1 parent e3209e8 commit 2c40b18
Show file tree
Hide file tree
Showing 5 changed files with 1,647 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/release-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
with:
node-version: 22
- run: yarn install --immutable --immutable-cache --check-cache
- run: yarn run tsc

publish-gpr:
needs: build
Expand All @@ -36,6 +37,7 @@ jobs:
node-version: 22
registry-url: https://npm.pkg.github.com/
- run: yarn install --immutable --immutable-cache --check-cache
- run: yarn run tsc
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
Expand All @@ -51,6 +53,7 @@ jobs:
registry-url: "https://registry.npmjs.org"
scope: "@csbnlu"
- run: yarn install --immutable --immutable-cache --check-cache
- run: yarn run tsc
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand Down
8 changes: 8 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,11 @@ runs:
- name: "Run script with Bun"
shell: bash
run: bun ./src/private-keys-provisioner/provision-secrets.ts
env:
ACCESS_TOKEN_SECRET_ARN: ${{ inputs.accessTokenSecretARN }}
REFRESH_TOKEN_SECRET_ARN: ${{ inputs.refreshTokenSecretARN }}
KID_VERSION_STAGE_PREFIX: ${{ inputs.kidVersionStagePrefix }}
KID_VERSION_STAGE_PREFIX_SEPARATOR: ${{ inputs.kidVersionStagePrefixSeparator }}
REGION: ${{ inputs.region }}
JWKS_TABLE_NAME: ${{ inputs.jwksTableName }}

7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"name": "@csbnlu/jawks-private-keys-provisioner",
"version": "0.0.6",
"version": "0.0.7",
"devDependencies": {
"@types/aws-lambda": "^8.10.143",
"@types/node": "^22.5.0",
"prettier": "^3.3.3"
},
"dependencies": {
Expand All @@ -14,11 +15,9 @@
"jose": "^5.7.0",
"zod": "^3.23.8"
},
"scripts": {
"provision": "bun ./src/private-keys-provisioner/provision-secrets.ts"
},
"files": [
"/src"
],
"main": "dist/index.js",
"license": "AGPL-3.0-or-later"
}
16 changes: 16 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"compilerOptions": {
"outDir": "dist",
"target": "es2020",
"declaration": true,
"module": "CommonJS",
"moduleResolution": "Node",
"noImplicitAny": true,
"sourceMap": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"strict": true,
"declarationMap": true
},
"files": ["src/index.ts"]
}
Loading

0 comments on commit 2c40b18

Please sign in to comment.