From 558f9a906263e9aa4ab7ab1afa08fd93c2e72914 Mon Sep 17 00:00:00 2001 From: Aashutosh soni Date: Thu, 25 Apr 2024 16:09:33 +0530 Subject: [PATCH] updated the yaml --- .github/workflows/deploy.yaml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 78248de..a7c5497 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -15,12 +15,6 @@ jobs: node-version: [21.x] steps: - - uses: actions/checkout@v3 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 - with: - node-version: ${{ matrix.node-version }} - cache: "npm" - run: systemctl stop nginx - run: killall node - run: docker container kill $(docker container ls -q) @@ -52,6 +46,13 @@ jobs: ENV_VAR_5: ${{ secrets.ENV_VAR_5 }} ENV_VAR_6: ${{ secrets.ENV_VAR_6 }} ENV_VAR_7: ${{ secrets.ENV_VAR_7 }} + + - uses: actions/checkout@v3 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + cache: "npm" - run: npm install - run: npm start &