mirror of
https://github.com/valitydev/ng-libs.git
synced 2024-11-06 08:45:27 +00:00
079d134b04
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Rinat Arsaev <11846445+A77AY@users.noreply.github.com>
41 lines
1.5 KiB
YAML
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 }}
|