chore(deps): bump actions/checkout from 4.1.1 to 4.1.7 #751
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 | |
jobs: | |
lint_workspace: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4.1.7 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-node@v4 | |
with: | |
cache: npm | |
- run: npm ci | |
- run: npx nx format:check | |
lint: | |
needs: lint_workspace | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4.1.7 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-node@v4 | |
with: | |
cache: npm | |
- run: npm ci | |
- uses: mansagroup/nrwl-nx-action@v3.2.1 | |
with: | |
targets: lint | |
nxCloud: 'true' | |
env: | |
NX_CLOUD_ACCESS_TOKEN: ${{secrets.NX_CLOUD_ACCESS_TOKEN}} | |
test: | |
needs: lint_workspace | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4.1.7 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-node@v4 | |
with: | |
cache: npm | |
- run: npm ci | |
- uses: mansagroup/nrwl-nx-action@v3.2.1 | |
with: | |
targets: test | |
args: --code-coverage | |
nxCloud: 'true' | |
env: | |
NX_CLOUD_ACCESS_TOKEN: ${{secrets.NX_CLOUD_ACCESS_TOKEN}} | |
build: | |
needs: lint_workspace | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4.1.7 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-node@v4 | |
with: | |
cache: npm | |
- run: npm ci | |
- name: Build affected | |
uses: mansagroup/nrwl-nx-action@v3.2.1 | |
with: | |
targets: build | |
args: --configuration=production | |
nxCloud: 'true' | |
env: | |
NX_CLOUD_ACCESS_TOKEN: ${{secrets.NX_CLOUD_ACCESS_TOKEN}} | |
- name: Save build output | |
uses: actions/upload-artifact@v4 | |
with: | |
name: packages | |
path: dist/packages | |
release: | |
needs: | |
- lint | |
- test | |
- build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4.1.7 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-node@v4 | |
with: | |
cache: npm | |
- run: npm ci | |
- name: Get build output | |
continue-on-error: true | |
uses: actions/download-artifact@v4 | |
with: | |
name: packages | |
path: dist/packages | |
- name: Release affected | |
uses: mansagroup/nrwl-nx-action@v3.2.1 | |
with: | |
targets: release | |
nxCloud: 'true' | |
env: | |
NX_CLOUD_ACCESS_TOKEN: ${{secrets.NX_CLOUD_ACCESS_TOKEN}} | |
GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_BOT_GITHUB_PAT }} | |
NPM_TOKEN: ${{ secrets.SEMANTIC_RELEASE_BOT_NPM_TOKEN }} | |
# build: | |
# runs-on: ubuntu-latest | |
# strategy: | |
# matrix: | |
# node-version: [12.x, 14.x, 16.x] | |
# # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ | |
# steps: | |
# - uses: actions/checkout@v4.1.7 | |
# - name: Use Node.js ${{ matrix.node-version }} | |
# uses: actions/setup-node@v4 | |
# with: | |
# node-version: ${{ matrix.node-version }} | |
# cache: 'npm' | |
# - run: npm ci | |
# - run: npm run build --if-present | |
# - run: npm test |