[Snyk] Security upgrade @nx/angular from 16.8.1 to 17.0.0 #148
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: Pull-Request CI | |
on: | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Cache multiple paths | |
uses: actions/cache@v2 | |
with: | |
path: | | |
**/node_modules | |
key: ${{ runner.os }}-${{ hashFiles('package.json') }} | |
- name: Use Node.js 16 | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 16.X | |
- run: npm install | |
- name: Build Libs | |
shell: bash | |
run: | | |
if [[ $GITHUB_BASE_REF ]] | |
then | |
export NX_BASE=remotes/origin/$GITHUB_BASE_REF | |
else | |
export NX_BASE=$(git rev-parse HEAD~1) | |
fi | |
echo "Base => $NX_BASE" | |
npm run affected:build -- --base=$NX_BASE | |
- name: Run Tests | |
shell: bash | |
run: | | |
if [[ $GITHUB_BASE_REF ]] | |
then | |
export NX_BASE=remotes/origin/$GITHUB_BASE_REF | |
else | |
export NX_BASE=$(git rev-parse HEAD~1) | |
fi | |
echo "Base => $NX_BASE" | |
npm run affected:test -- --base=$NX_BASE | |
- run: npm run build | |
- name: Deploy Preview | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
personal_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./dist/apps/demo | |
destination_dir: ./pr_${{ github.event.number }} | |
keep_files: false |