Bump @next/eslint-plugin-next from 14.2.13 to 15.0.2 in /example #1603
Workflow file for this run
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: CI | |
on: | |
push: | |
branches: | |
- '*' | |
tags-ignore: | |
- '*' | |
pull_request: | |
release: | |
types: | |
- published | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- run: npm ci | |
- run: npm run-s test:lint | |
lint-example: | |
name: Lint Example App | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- run: npm ci | |
- working-directory: ./example | |
run: npm ci | |
- working-directory: ./example | |
run: npm run lint | |
prettier: | |
name: Prettier | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- run: npm ci | |
- run: npm run-s test:prettier | |
prettier-example: | |
name: Prettier Example App | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- run: npm ci | |
- working-directory: ./example | |
run: npm ci | |
- working-directory: ./example | |
run: npm run prettier:check | |
typescript: | |
name: Typescript | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- run: npm ci | |
- run: npm run-s test:ts | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- run: npm ci | |
- run: npm run-s test:unit | |
- uses: coverallsapp/[email protected] | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
build-package-only: | |
name: Build (Package Only) - ${{ matrix.os }}/Node ${{ matrix.node_version }} | |
strategy: | |
fail-fast: false | |
matrix: | |
node_version: | |
- 16 | |
os: | |
- macos-latest | |
- ubuntu-latest | |
- windows-latest | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node_version }} | |
- run: npm ci | |
- run: npm run-s build | |
build: | |
name: Build - ${{ matrix.os }}/Node ${{ matrix.node_version }} | |
strategy: | |
fail-fast: false | |
matrix: | |
node_version: | |
- 18 | |
- 20 | |
os: | |
- macos-latest | |
- ubuntu-latest | |
- windows-latest | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node_version }} | |
- run: npm ci | |
- run: npm run-s build | |
- working-directory: ./example | |
run: npm install | |
- working-directory: ./example | |
run: npm run build | |
- if: matrix.os == 'ubuntu-latest' && matrix.node_version == 20 && ((github.event_name == 'push' && github.ref == 'refs/heads/main') || github.event.action == 'published') | |
uses: actions/upload-artifact@v4 | |
with: | |
name: dist | |
path: dist/** | |
- if: matrix.os == 'ubuntu-latest' && matrix.node_version == 20 && github.event_name == 'push' && github.ref == 'refs/heads/main' | |
uses: actions/upload-artifact@v4 | |
with: | |
name: example-app | |
path: example/out/** | |
deploy: | |
needs: | |
- lint | |
- lint-example | |
- prettier | |
- prettier-example | |
- typescript | |
- test | |
- build | |
- build-package-only | |
if: github.event_name == 'push' && github.ref == 'refs/heads/main' | |
name: GitHub Pages | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- run: npm ci | |
- uses: actions/download-artifact@v4 | |
with: | |
name: dist | |
path: dist | |
- working-directory: ./example | |
run: npm install | |
- uses: actions/download-artifact@v4 | |
with: | |
name: example-app | |
path: example/out | |
- uses: peaceiris/actions-gh-pages@v4 | |
with: | |
personal_token: ${{ secrets.GH_PAGES_DEPLOY_TOKEN }} | |
publish_dir: ./example/out | |
user_name: 'github-actions[bot]' | |
user_email: 'github-actions[bot]@users.noreply.github.com' | |
publish: | |
needs: | |
- lint | |
- lint-example | |
- prettier | |
- prettier-example | |
- typescript | |
- test | |
- build | |
- build-package-only | |
if: github.event.action == 'published' | |
name: Publish | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
registry-url: https://registry.npmjs.org/ | |
node-version: 20 | |
- run: npm ci | |
- uses: actions/download-artifact@v4 | |
with: | |
name: dist | |
path: dist | |
- run: npm publish --access public | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |