diff --git a/.github/workflows/push_trigger.yml b/.github/workflows/push_trigger.yml new file mode 100644 index 0000000..09350b4 --- /dev/null +++ b/.github/workflows/push_trigger.yml @@ -0,0 +1,52 @@ +name: Build and Push + +on: + workflow_dispatch: + inputs: + destination_branch: + description: 'Provide artifactory branch' + required: true + type: string + +jobs: + build-and-push: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: npm Install + run: | + cd sign-in-with-esignet + npm i + - name: Build APK + run: | + cd sign-in-with-esignet + npm run build + - name: Zip dist directory + run: | + cd sign-in-with-esignet + mv dist sign-in-with-esignet + zip -r sign-in-with-esignet.zip sign-in-with-esignet/ + + - name: Upload ZIP artifact + uses: actions/upload-artifact@v2 + with: + name: sign-in-with-esignet + path: sign-in-with-esignet/sign-in-with-esignet.zip + + - name: Copy ZIP file to esignet-plugins directory + run: | + mkdir -p esignet-plugins + cp ./sign-in-with-esignet/sign-in-with-esignet.zip esignet-plugins/ + + - name: Pushes esignet-plugin folder + uses: datalbry/copy_folder_to_another_repo_action@1.0.1 + env: + API_TOKEN_GITHUB: ${{ secrets.ACTION_PAT }} + with: + source_folder: esignet-plugins + destination_repo: mosip/artifactory-ref-impl + destination_folder: artifacts/src/esignet-plugins + destination_branch: ${{ github.event.inputs.destination_branch }} + user_name: mosip \ No newline at end of file diff --git a/mosip-bio-device/package-lock.json b/mosip-bio-device/package-lock.json index 821e522..0b6d6d1 100644 --- a/mosip-bio-device/package-lock.json +++ b/mosip-bio-device/package-lock.json @@ -25813,9 +25813,9 @@ } }, "node_modules/tough-cookie": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-4.1.2.tgz", - "integrity": "sha512-G9fqXWoYFZgTc2z8Q5zaHy/vJMjm+WV0AkAeHxVCQiEB1b+dGvWzFW6QV07cY5jQ5gRkeid2qIkzkxUnmoQZUQ==", + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-4.1.3.tgz", + "integrity": "sha512-aX/y5pVRkfRnfmuX+OdbSdXvPe6ieKX/G2s7e98f4poJHnqH3281gDPm/metm6E/WRamfx7WC4HUqkWHfQHprw==", "dev": true, "dependencies": { "psl": "^1.1.33", @@ -46524,9 +46524,9 @@ "dev": true }, "tough-cookie": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-4.1.2.tgz", - "integrity": "sha512-G9fqXWoYFZgTc2z8Q5zaHy/vJMjm+WV0AkAeHxVCQiEB1b+dGvWzFW6QV07cY5jQ5gRkeid2qIkzkxUnmoQZUQ==", + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-4.1.3.tgz", + "integrity": "sha512-aX/y5pVRkfRnfmuX+OdbSdXvPe6ieKX/G2s7e98f4poJHnqH3281gDPm/metm6E/WRamfx7WC4HUqkWHfQHprw==", "dev": true, "requires": { "psl": "^1.1.33",