From e2194a29cbae40405992723c77bb3ea1bad4a8fe Mon Sep 17 00:00:00 2001 From: Deepanshu Sukhija Date: Fri, 22 Mar 2024 14:30:30 +0530 Subject: [PATCH 1/3] removed npm token dependency --- README.md | 3 +-- action.yml | 11 +---------- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 4df8f03..12e55a0 100644 --- a/README.md +++ b/README.md @@ -24,12 +24,11 @@ jobs: uses: useparagon/paragraph-push@v1 with: paragonKey: ${{ secrets.PARAGON_CLI_KEY }} - npmToken: ${{ secrets.NPM_TOKEN }} paragonZeusUrl: ${{ secrets.ZEUS_URL }} paragonDashboardUrl: ${{ secrets.DASHBOARD_URL }} ``` -Make sure to replace ${{ secrets.PARAGON_CLI_KEY }}, ${{ secrets.NPM_TOKEN }}, ${{ secrets.ZEUS_URL }}, and ${{ secrets.DASHBOARD_URL }} with your actual secrets. Also, ensure to use the correct version of the action. +Make sure to replace ${{ secrets.PARAGON_CLI_KEY }}, ${{ secrets.ZEUS_URL }}, and ${{ secrets.DASHBOARD_URL }} with your actual secrets. Also, ensure to use the correct version of the action. ## Inputs - paragonKey diff --git a/action.yml b/action.yml index badf4b3..7cd0d43 100644 --- a/action.yml +++ b/action.yml @@ -4,9 +4,6 @@ inputs: paragonKey: type: string required: true - npmToken: - type: string - required: true paragonZeusUrl: type: string required: true @@ -56,12 +53,7 @@ runs: if [ -z "${{ inputs.paragonKey }}" ]; then echo "paragonKey is not provided." exit 1 - fi - - if [ -z "${{ inputs.npmToken }}" ]; then - echo "npmToken is not provided." - exit 1 - fi + fi if [ -z "${{ inputs.paragonZeusUrl }}" ]; then echo "paragonZeusUrl is not provided." @@ -81,7 +73,6 @@ runs: - name: Install para CLI shell: bash run: | - echo "//registry.npmjs.org/:_authToken=${{ inputs.npmToken }}" > ~/.npmrc npm install -g @useparagon/cli@0.0.1-canary.27 - name: Authenticate into CLI From 7536774824259758f163d64448d0cb36860a7ea2 Mon Sep 17 00:00:00 2001 From: Ethan Lee Date: Sat, 23 Mar 2024 10:31:49 -0700 Subject: [PATCH 2/3] Update version of CLI and add defaults to URLs --- action.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/action.yml b/action.yml index 7cd0d43..0a40cc1 100644 --- a/action.yml +++ b/action.yml @@ -6,10 +6,12 @@ inputs: required: true paragonZeusUrl: type: string - required: true + required: false + default: https://zeus.useparagon.com paragonDashboardUrl: type: string - required: true + required: false + default: https://dashboard.useparagon.com runs: using: 'composite' @@ -73,7 +75,7 @@ runs: - name: Install para CLI shell: bash run: | - npm install -g @useparagon/cli@0.0.1-canary.27 + npm install -g @useparagon/cli - name: Authenticate into CLI env: From e97149f7fd7e3eec4ec6c5471b28694c506beeb1 Mon Sep 17 00:00:00 2001 From: Ethan Lee Date: Sat, 23 Mar 2024 10:36:28 -0700 Subject: [PATCH 3/3] Add icon and color --- action.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 0a40cc1..41593af 100644 --- a/action.yml +++ b/action.yml @@ -1,5 +1,8 @@ name: 'Paragraph Push Runner' -description: 'Pushes updated code from github branch and sync with paragon project' +description: 'Pushes updated code from GitHub to sync with Paragon.' +branding: + icon: upload-cloud + color: gray-dark inputs: paragonKey: type: string