Loading .github/workflows/npm-publish.yml +8 −11 Original line number Diff line number Diff line Loading @@ -51,20 +51,17 @@ jobs: steps: - uses: actions/checkout@v3 - name: Print all environment variables - name: Export all secrets run: | # Print all environment variables available in the 'test' environment printenv for var in $(printenv | grep 'SECRET_'); do echo "Exporting $var as environment variable" export ${var%%=*}="${!var}" done env: # Load all secrets using this shorthand without explicitly defining each one $(for var in $(env | grep 'secrets'); do echo "$var: \${{ secrets.${var} }}"; done) - name: Print specific environment variables from 'test' environment run: | echo "${{ vars }}" > .env - name: check file run: | cat .env - name: inject vars run: | node -e "console.log(process.env)" Loading Loading
.github/workflows/npm-publish.yml +8 −11 Original line number Diff line number Diff line Loading @@ -51,20 +51,17 @@ jobs: steps: - uses: actions/checkout@v3 - name: Print all environment variables - name: Export all secrets run: | # Print all environment variables available in the 'test' environment printenv for var in $(printenv | grep 'SECRET_'); do echo "Exporting $var as environment variable" export ${var%%=*}="${!var}" done env: # Load all secrets using this shorthand without explicitly defining each one $(for var in $(env | grep 'secrets'); do echo "$var: \${{ secrets.${var} }}"; done) - name: Print specific environment variables from 'test' environment run: | echo "${{ vars }}" > .env - name: check file run: | cat .env - name: inject vars run: | node -e "console.log(process.env)" Loading