From 41eda90663e7f0264eb9b2d0a0f4d85298ccd417 Mon Sep 17 00:00:00 2001 From: Vasyl Ivanchuk Date: Tue, 26 Sep 2023 14:44:42 +0300 Subject: [PATCH] fix: actions permissions --- .github/workflows/app-deploy-feature-branch.yml | 1 + .github/workflows/nodejs-license.yaml | 11 +++++------ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/app-deploy-feature-branch.yml b/.github/workflows/app-deploy-feature-branch.yml index 0255967245..5b862b4edd 100644 --- a/.github/workflows/app-deploy-feature-branch.yml +++ b/.github/workflows/app-deploy-feature-branch.yml @@ -8,6 +8,7 @@ jobs: permissions: contents: read pull-requests: write + checks: write defaults: run: working-directory: ./packages/app diff --git a/.github/workflows/nodejs-license.yaml b/.github/workflows/nodejs-license.yaml index 45515d648a..b16ed0bdd1 100644 --- a/.github/workflows/nodejs-license.yaml +++ b/.github/workflows/nodejs-license.yaml @@ -33,7 +33,7 @@ jobs: steps: - uses: actions/checkout@v3 - run: | - DIRS=$(find -not \( -path \*node_modules -prune \) -type f -name yarn.lock | xargs dirname | awk -v RS='' -v OFS='","' 'NF { $1 = $1; print "\"" $0 "\"" }') + DIRS=$(find -not \( -path \*node_modules -prune \) -type f -name package.json | xargs dirname | awk -v RS='' -v OFS='","' 'NF { $1 = $1; print "\"" $0 "\"" }') echo "matrix=[${DIRS}]" >> $GITHUB_OUTPUT id: set-matrix @@ -54,12 +54,11 @@ jobs: with: node-version: 18 - - name: Install yarn - run: npm install -g yarn license-checker + - name: Install license checker + run: npm install -g license-checker - - name: Install dependencies in ${{ matrix.dir }} - working-directory: ${{ matrix.dir }} - run: yarn install + - name: Install dependencies + run: npm ci - name: Check licenses in ${{ matrix.dir }} working-directory: ${{ matrix.dir }}