Skip to content

update wf

update wf #7

Workflow file for this run

name: deploy
on:
push:
branches: [main, test/ci]
env:
READONLY_GITHUB_TOKEN: ${{ secrets.READONLY_GITHUB_TOKEN }}
jobs:
setup:
runs-on: ubuntu-latest
outputs:
apps: ${{ steps.affected.outputs.apps }}
libs: ${{ steps.affected.outputs.libs }}
steps:
# checkout
- uses: actions/checkout@v4
name: Checkout
with:
fetch-depth: 0
- name: Derive appropriate SHAs for base and head for `nx affected` commands
uses: nrwl/nx-set-shas@v3
with:
main-branch-name: 'main'
- name: Setup
uses: ./.github/actions/setup-nx
with:
ro-token: ${{ secrets.READONLY_GITHUB_TOKEN }}
- name: Affected
id: affected
env:
READONLY_GITHUB_TOKEN: ${{ secrets.READONLY_GITHUB_TOKEN }}
run: |
apps="`yarn --silent nx show projects --json --affected --type app`"
echo "apps=${apps}" >> $GITHUB_OUTPUT
libs="`yarn --silent nx show projects --json --affected --type lib`"
echo "libs=${libs}" >> $GITHUB_OUTPUT