From 21a75efecb46fe8bae36cf73b2313a1c822bb711 Mon Sep 17 00:00:00 2001 From: Himanshu Jangid Date: Thu, 14 Dec 2023 17:22:24 +0530 Subject: [PATCH] move environments to the top --- .github/workflows/node.js.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 3b457c4..33fd91e 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -9,10 +9,14 @@ on: pull_request: branches: ["main"] +env: + YOURLS_USERNAME: ${{ vars.YOURLS_USERNAME }} + YOURLS_PASSWORD: ${{vars.YOURLS_PASSWORD}} + YOURLS_SERVER_URL: ${{vars.YOURLS_SERVER_URL}} + jobs: build: runs-on: ubuntu-latest - environment: Test strategy: matrix: @@ -22,10 +26,6 @@ jobs: steps: - uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} - env: - YOURLS_USERNAME: ${{ vars.YOURLS_USERNAME }} - YOURLS_PASSWORD: ${{vars.YOURLS_PASSWORD}} - YOURLS_SERVER_URL: ${{vars.YOURLS_SERVER_URL}} uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }}