diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index 6234404..a2b3ae9 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -10,6 +10,7 @@ env: AZURE_WEBAPP_NAME: pos-backend-staging # set this to your application's name AZURE_WEBAPP_PACKAGE_PATH: 'dist' # set this to the path to your web app project, defaults to the repository root NODE_VERSION: '18.x' # set this to the node version to use + YARN_VERSION: '1.22.22' # set this to the desired Yarn version jobs: build-and-deploy: @@ -17,14 +18,13 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@master - - name: Install latest Yarn - run: npm install -g yarn - - name: Print Yarn version - run: yarn --version - name: Use Node.js ${{ env.NODE_VERSION }} uses: actions/setup-node@v1 with: node-version: ${{ env.NODE_VERSION }} + yarn-version: ${{ env.YARN_VERSION }} + - name: Print Yarn version + run: yarn --version - name: yarn install and build run: | # Build and test the project, then