feat(section-notice): update cta without footer to latest specs (#257) #581
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: eBay UI CI | |
on: | |
pull_request: | |
types: [opened, synchronize] | |
push: | |
branches: ["main", "[1-9][0-9].*"] | |
concurrency: | |
group: "${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }}" | |
cancel-in-progress: true | |
permissions: | |
actions: write | |
checks: write | |
contents: write | |
deployments: write | |
discussions: write | |
issues: write | |
packages: write | |
id-token: write | |
pull-requests: write | |
repository-projects: write | |
security-events: write | |
statuses: write | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
- run: npm i | |
- run: npm run build:ci | |
- uses: codecov/codecov-action@v5 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
- name: Check for uncommitted changes | |
run: | | |
if output=$(git status --porcelain) && [ -z "$output" ]; then | |
echo "Working directory is clean. No uncommitted changes." | |
else | |
echo "Working directory has uncommitted changes or untracked files. Please run the build and check these files in as part of your PR:" | |
echo "$output" | |
exit 1 # Fail the CI run if there are uncommitted changes | |
fi | |
# Deployment job | |
deploy: | |
if: github.ref == 'refs/heads/main' | |
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | |
permissions: | |
pages: write | |
id-token: write | |
contents: write | |
packages: write | |
pull-requests: write | |
issues: read | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
runs-on: ubuntu-latest | |
needs: [build] | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
- name: Install dependencies | |
run: npm i | |
- name: Deploy job | |
run: npm run deploy | |
- name: Upload artifact | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
path: _site/public | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v4 | |
release: | |
# Sets permissions of the GITHUB_TOKEN to allow opening release PR | |
needs: [build] | |
permissions: | |
id-token: write | |
contents: write | |
packages: write | |
pull-requests: write | |
issues: read | |
runs-on: ubuntu-latest | |
if: "${{ github.repository_owner == 'ebay' && github.event_name == 'push' }}" | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup node | |
uses: actions/setup-node@v4 | |
- name: Install dependencies | |
run: npm i | |
- name: Release | |
id: changesets | |
uses: changesets/action@v1 | |
with: | |
version: npm run version | |
publish: npm run release | |
commit: "ci: release" | |
title: "ci: release" | |
env: | |
# Disable husky | |
HUSKY: 0 | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |