Add none filter to memento keyword #4593
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: PR Build | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened] | |
paths-ignore: | |
- 'docs/**' | |
# Ensures that only one deploy task per branch/environment will run at a time. | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18.x | |
cache: yarn | |
- name: Install | |
run: yarn install --frozen-lockfile --prefer-offline | |
- name: get-npm-version | |
id: package-version | |
uses: martinbeentjes/[email protected] | |
- name: set beta | |
run: | | |
echo "build_level='beta'" >> $GITHUB_ENV | |
- name: Bump release version (beta) | |
run: | | |
echo "VERSION=${{ steps.package-version.outputs.current-version }}.${{ github.run_number }}" >> $GITHUB_ENV | |
- name: Build beta | |
run: yarn build:beta | |
env: | |
NODE_OPTIONS: "--max_old_space_size=8192" | |
PR_BUILD: true | |
- name: Check for updates to build pipeline | |
id: filter | |
uses: dorny/paths-filter@v2 | |
with: | |
filters: | | |
build-pipeline: | |
- package.json | |
- yarn.lock | |
- config/webpack.ts | |
- name: Send webpack stats to RelativeCI | |
if: ${{ steps.filter.outputs.build-pipeline == 'true' }} | |
uses: relative-ci/agent-action@v2 | |
with: | |
webpackStatsFile: ./webpack-stats.json | |
key: ${{ secrets.RELATIVE_CI_KEY }} | |
token: ${{ secrets.GITHUB_TOKEN }} |