ng-libs/.github/workflows/pr.yaml
renovate[bot] 079d134b04
Update actions/checkout action to v4 (#38)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Rinat Arsaev <11846445+A77AY@users.noreply.github.com>
2023-09-19 15:51:59 +04:00

41 lines
1.5 KiB
YAML

name: 'PR'
on:
pull_request:
branches: ['*']
jobs:
check:
name: Check
runs-on: ubuntu-latest
env:
SHORT_SHA: $(echo "${{ github.event.pull_request.head.sha }}" | cut -c1-7)
steps:
- uses: actions/checkout@v4
- uses: valitydev/action-frontend/setup@v1.0
- run: npm ci
- name: Check
run: npm run check
- name: Build
run: npm run build
- name: Publish Angular Core
working-directory: ./projects/ng-core/dist
run: npm version prerelease --preid pr-${{ github.event.number }}-${{ env.SHORT_SHA }} --no-git-tag-version && npm publish --tag pr
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Publish ESLint Config
working-directory: ./projects/eslint-config
run: npm version prerelease --preid pr-${{ github.event.number }}-${{ env.SHORT_SHA }} --no-git-tag-version && npm publish --tag pr
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Publish CSpell Config
working-directory: ./projects/cspell-config
run: npm version prerelease --preid pr-${{ github.event.number }}-${{ env.SHORT_SHA }} --no-git-tag-version && npm publish --tag pr
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Publish Prettier Config
working-directory: ./projects/prettier-config
run: npm version prerelease --preid pr-${{ github.event.number }}-${{ env.SHORT_SHA }} --no-git-tag-version && npm publish --tag pr
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}