feat: adds include, exclude, and outputDir to tar process #728
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: semantic-release-plus | |
on: | |
push: | |
branches: | |
- master | |
- next | |
- beta | |
- alpha | |
- '*.x' # maintenance releases branches | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
env: | |
NX_CLOUD_DISTRIBUTED_EXECUTION: true | |
NX_CLOUD_ACCESS_TOKEN: ${{secrets.NX_CLOUD_ACCESS_TOKEN}} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.SEMANTIC_RELEASE_BOT_NPM_TOKEN }} | |
jobs: | |
main: | |
runs-on: ubuntu-latest | |
steps: | |
- run: git config --global user.name github-actions | |
- run: git config --global user.email github-actions@github.com | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Derive appropriate SHAs for base and head for `nx affected` commands | |
uses: nrwl/nx-set-shas@v4 | |
with: | |
main-branch-name: master | |
# Set node/npm/yarn versions using volta | |
- uses: volta-cli/action@v4 | |
with: | |
package-json-path: '${{ github.workspace }}/package.json' | |
- run: npm ci --ignore-scripts | |
- run: npx nx-cloud start-ci-run | |
- name: '📝 Lint' | |
run: npx nx affected --target=lint --parallel --max-parallel=3 | |
- name: '🧪 Test' | |
run: npx nx affected --target=test --codeCoverage --parallel --max-parallel=3 | |
- name: '🧪 Test ava' | |
run: npx nx affected --target=ava --parallel --max-parallel=3 | |
# must run after tests to get coverage info | |
- name: SonarCloud Scan | |
uses: SonarSource/sonarcloud-github-action@master | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
# - name: '🔎 E2E' | |
# run: NX_CLOUD_DISTRIBUTED_EXECUTION=false npx nx affected --target=e2e --parallel --max-parallel=3 | |
- name: '🏗️ Build' | |
run: npx nx affected --target=build --configuration=production --parallel --max-parallel=3 | |
- name: '📦 Release' | |
run: NX_CLOUD_DISTRIBUTED_EXECUTION=false npx nx affected --target=release | |
- run: npx nx-cloud stop-all-agents | |
agents: | |
runs-on: ubuntu-latest | |
name: Agent 1 | |
timeout-minutes: 60 | |
strategy: | |
matrix: | |
agent: [1, 2, 3] | |
steps: | |
- run: git config --global user.name github-actions | |
- run: git config --global user.email github-actions@github.com | |
- uses: actions/checkout@v4 | |
# Set node/npm/yarn versions using volta | |
- uses: volta-cli/action@v4 | |
with: | |
package-json-path: '${{ github.workspace }}/package.json' | |
- run: npm ci --ignore-scripts | |
- name: Start Nx Agent ${{ matrix.agent }} | |
run: npx nx-cloud start-agent |