Update dependency eslint-plugin-import to v2.32.0 #91
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
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| name: Build, Test and maybe Publish to NPM | |
| jobs: | |
| test-cache-lib: | |
| name: Build and Test cache-lib | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: [20.x] | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Using Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@v1 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| - name: Cache node_modules | |
| id: cache-modules | |
| uses: actions/cache@v1 | |
| with: | |
| path: node_modules | |
| key: ${{ matrix.node-version }}-${{ runner.OS }}-build-${{ hashFiles('package.json') }} | |
| - name: Build | |
| if: steps.cache-modules.outputs.cache-hit != 'true' | |
| run: npm install | |
| - name: Test | |
| run: cd libs/cache && npm run test | |
| publish-cache-lib: | |
| name: Publish cache-lib | |
| needs: test-cache-lib | |
| runs-on: ubuntu-latest | |
| if: ( github.event_name == 'push' || github.event_name == 'pull_request' ) && github.ref == 'refs/heads/main' | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Cache node_modules | |
| id: cache-modules | |
| uses: actions/cache@v1 | |
| with: | |
| path: node_modules | |
| key: 12.x-${{ runner.OS }}-build-${{ hashFiles('package.json') }} | |
| - name: Install Dependencies | |
| if: steps.cache-modules.outputs.cache-hit != 'true' | |
| run: npm install | |
| - name: Build | |
| run: cd libs/cache && npm run build | |
| - name: Publish | |
| uses: surjitsahoo/merge-release@main | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
| SRC_PACKAGE_DIR: libs/cache | |
| DEPLOY_DIR: libs/cache |