Merge pull request #623 from Meghana-2124/fix/add-alt-text-whats-inside #1348
Workflow file for this run
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: Test & Release | |
| on: [push, pull_request] | |
| env: | |
| CI: false | |
| jobs: | |
| tests: | |
| name: Test | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node: [ '18', '20' ] | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: pnpm/action-setup@v2 | |
| with: | |
| version: 9 | |
| - uses: actions/setup-node@v3 | |
| with: | |
| node-version: ${{ matrix.node }} | |
| cache: 'pnpm' | |
| - run: pnpm install --frozen-lockfile | |
| working-directory: ./next-cloudinary | |
| - run: pnpm test | |
| working-directory: ./next-cloudinary | |
| - run: pnpm test:app | |
| working-directory: ./next-cloudinary | |
| release: | |
| name: Release | |
| if: ${{ github.event_name == 'push' && (github.ref_name == 'main' || github.ref_name == 'beta') }} | |
| needs: tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| with: | |
| fetch-depth: 0 | |
| - uses: pnpm/action-setup@v2 | |
| with: | |
| version: 9 | |
| - uses: actions/setup-node@v3 | |
| with: | |
| node-version: '20' | |
| cache: 'pnpm' | |
| # https://github.com/pnpm/pnpm/issues/3141 | |
| registry-url: 'https://registry.npmjs.org' | |
| - run: pnpm install --frozen-lockfile | |
| - run: pnpm release | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
| NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |