Unverified Commit a8c6264d authored by FauziFadhi's avatar FauziFadhi Committed by GitHub
Browse files

Update npm-publish.yml

parent 197fe6d4
Loading
Loading
Loading
Loading
+11 −1
Original line number Diff line number Diff line
@@ -56,9 +56,19 @@ jobs:
        # Print all environment variables available in the 'test' environment
        printenv

    
    - name: Print specific environment variables from 'test' environment
      run: |
        for var in $(compgen -v | grep '^vars_'); do key="${var#vars_}" value="${!var}" echo "$key = '$value'" >> ".env" done
        for var in $(compgen -v | grep '^vars_'); do
        # Extract the key by removing the 'vars_' prefix
        key="${var#vars_}"
  
        # Get the value of the variable using indirect reference
        value="${!var}"

        # Write the key-value pair to the file
        echo "$key = '$value'" >> ".env"
        done
        
    - name: inject vars
      run: |