Skip to content

Commit

Permalink
fix: actions permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
vasyl-ivanchuk committed Sep 26, 2023
1 parent d158689 commit 41eda90
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
1 change: 1 addition & 0 deletions .github/workflows/app-deploy-feature-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ jobs:
permissions:
contents: read
pull-requests: write
checks: write
defaults:
run:
working-directory: ./packages/app
Expand Down
11 changes: 5 additions & 6 deletions .github/workflows/nodejs-license.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}
Expand Down

0 comments on commit 41eda90

Please sign in to comment.