chore(master): release propertea 1.0.1 (#2) #6
This file contains hidden or 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: CI | |
| on: | |
| push: | |
| branches: [master] | |
| pull_request: | |
| branches: [master] | |
| workflow_dispatch: {} | |
| concurrency: | |
| group: ci-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Use Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22.x | |
| cache: 'npm' | |
| - run: npm config set registry ${{ vars.NPM_CI_REGISTRY }} | |
| if: ${{ vars.NPM_CI_REGISTRY }} | |
| - id: cache-node-modules | |
| uses: actions/cache@v4 | |
| with: | |
| path: '**/node_modules' | |
| key: ${{ hashFiles('**/package-lock.json') }} | |
| - if: ${{ steps.cache-node-modules.outputs.cache-hit != 'true' }} | |
| run: npm ci | |
| - run: npm run build | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: [22.x] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Use Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: 'npm' | |
| - id: cache-node-modules | |
| uses: actions/cache@v4 | |
| with: | |
| path: '**/node_modules' | |
| key: ${{ runner.os }}-${{ matrix.node-version }}-modules-${{ hashFiles('package-lock.json') }} | |
| - run: npm config set registry ${{ vars.NPM_CI_REGISTRY }} | |
| if: ${{ vars.NPM_CI_REGISTRY && steps.cache-node-modules.outputs.cache-hit != 'true' }} | |
| - run: npm ci | |
| if: ${{ steps.cache-node-modules.outputs.cache-hit != 'true' }} | |
| - run: npm run -- test --project test | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Use Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22.x | |
| cache: 'npm' | |
| - run: npm config set registry ${{ vars.NPM_CI_REGISTRY }} | |
| if: ${{ vars.NPM_CI_REGISTRY }} | |
| - id: cache-node-modules | |
| uses: actions/cache@v4 | |
| with: | |
| path: '**/node_modules' | |
| key: ${{ hashFiles('**/package-lock.json') }} | |
| - if: ${{ steps.cache-node-modules.outputs.cache-hit != 'true' }} | |
| run: npm ci | |
| - run: npm run lint |