chore(project): enable verbose in pipelines #26
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: 📦 Release | |
on: | |
push: | |
branches: | |
- master | |
- beta | |
- '*.x' | |
jobs: | |
lint: | |
uses: ./.github/workflows/lint.yml | |
with: | |
head: ${GITHUB_REF##*/} | |
test: | |
uses: ./.github/workflows/test.yml | |
with: | |
head: ${GITHUB_REF##*/} | |
release: | |
runs-on: ubuntu-latest | |
needs: [lint, test] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
token: ${{ secrets.SEMANTIC_RELEASE }} | |
- run: git fetch origin ${{ inputs.base }} | |
- name: Setup Node.js | |
uses: ./.github/actions/nodejs | |
- name: Build Projects | |
run: npx nx run-many --all --target=build --configuration=ci --parallel --verbose | |
- name: Copy 404.html | |
run: cp dist/apps/docs/browser/index.html dist/apps/docs/browser/404.html | |
- name: Tar Artifacts | |
run: tar -cvf docs.tar dist/apps/docs/browser | |
- name: Uploading Artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: artifacts | |
path: docs.tar | |
- name: Release | |
env: | |
GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
run: npx semantic-release |