Skip to content

add checkout to tagging job #15

add checkout to tagging job

add checkout to tagging job #15

Workflow file for this run

name: Deployment pipeline
on:
push:
branches: [main]
paths:
- "part11/pokedex/**"
- ".github/workflows/pipeline.yaml"
pull_request:
branches: [main]
types: [opened, synchronize]
jobs:
simple_deployment_pipeline:
runs-on: ubuntu-latest
defaults:
run:
working-directory: part11/pokedex
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version: "24"
- name: Install dependencies
run: npm install
- name: Check style
run: npm run eslint
- name: Run npm test
run: npm run test
- name: Run npm build
run: npm run build
- name: Install Playwright browser
run: npx playwright install --with-deps
- name: Run Playwright tests
run: npm run test:e2e
- name: Trigger deployment
if: ${{ github.event_name == 'push' }}
run: curl ${{ secrets.POKEDEX_RENDER_DEPLOY_HOOK }}
tag_release:
needs: [simple_deployment_pipeline]
if: github.event_name == 'push'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- name: Bump version and push tag
uses: anothrNick/github-tag-action@1.75.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAG_PREFIX: v
DEFAULT_BUMP: patch