5
0
Fork 0
mirror of https://github.com/hashicorp/vault-action.git synced 2025-11-07 15:16:56 +00:00

fix: package action (#3)

Package action output per github docs.
This commit is contained in:
Richard Simpson 2019-10-15 14:00:01 -05:00 committed by GitHub
parent 6784ab3896
commit da9a93f3f5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 4758 additions and 2 deletions

View file

@ -21,6 +21,8 @@ jobs:
node-version: 10.x node-version: 10.x
- name: npm install - name: npm install
run: npm ci run: npm ci
- name: npm build
run: npm run build
- name: npm run test - name: npm run test
run: npm run test run: npm run test
env: env:
@ -52,6 +54,8 @@ jobs:
node-version: 10.x node-version: 10.x
- name: npm install - name: npm install
run: npm ci run: npm ci
- name: npm build
run: npm run build
- name: setup vault - name: setup vault
run: node ./e2e/setup.js run: node ./e2e/setup.js
env: env:

View file

@ -12,7 +12,7 @@ inputs:
required: true required: true
runs: runs:
using: 'node12' using: 'node12'
main: 'index.js' main: 'dist/index.js'
branding: branding:
icon: 'unlock' icon: 'unlock'
color: 'gray-dark' color: 'gray-dark'

4744
dist/index.js vendored Normal file

File diff suppressed because it is too large Load diff

6
package-lock.json generated
View file

@ -965,6 +965,12 @@
"integrity": "sha512-gCubfBUZ6KxzoibJ+SCUc/57Ms1jz5NjHe4+dI2krNmU5zCPAphyLJYyTOg06ueIyfj+SaCUqmzun7ImlxDcKg==", "integrity": "sha512-gCubfBUZ6KxzoibJ+SCUc/57Ms1jz5NjHe4+dI2krNmU5zCPAphyLJYyTOg06ueIyfj+SaCUqmzun7ImlxDcKg==",
"dev": true "dev": true
}, },
"@zeit/ncc": {
"version": "0.20.5",
"resolved": "https://registry.npmjs.org/@zeit/ncc/-/ncc-0.20.5.tgz",
"integrity": "sha512-XU6uzwvv95DqxciQx+aOLhbyBx/13ky+RK1y88Age9Du3BlA4mMPCy13BGjayOrrumOzlq1XV3SD/BWiZENXlw==",
"dev": true
},
"JSONStream": { "JSONStream": {
"version": "1.3.5", "version": "1.3.5",
"resolved": "https://registry.npmjs.org/JSONStream/-/JSONStream-1.3.5.tgz", "resolved": "https://registry.npmjs.org/JSONStream/-/JSONStream-1.3.5.tgz",

View file

@ -2,8 +2,9 @@
"name": "vault-action", "name": "vault-action",
"version": "0.1.0", "version": "0.1.0",
"description": "A Github Action that allows you to consume vault secrets as secure environment variables.", "description": "A Github Action that allows you to consume vault secrets as secure environment variables.",
"main": "index.js", "main": "dist/index.js",
"scripts": { "scripts": {
"build": "ncc build index.js -o dist",
"test": "jest", "test": "jest",
"test:integration": "jest -c integration/jest.config.js", "test:integration": "jest -c integration/jest.config.js",
"test:e2e": "jest -c e2e/jest.config.js" "test:e2e": "jest -c e2e/jest.config.js"
@ -41,6 +42,7 @@
}, },
"devDependencies": { "devDependencies": {
"@types/jest": "^24.0.18", "@types/jest": "^24.0.18",
"@zeit/ncc": "^0.20.5",
"jest": "^24.9.0", "jest": "^24.9.0",
"jest-when": "^2.7.0", "jest-when": "^2.7.0",
"semantic-release": "^15.13.24" "semantic-release": "^15.13.24"