This repository has been archived by the owner on Jun 6, 2023. It is now read-only.
fix(issues): issue titles should be longer #1659
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: Continuous integration and deployment | |
on: | |
push: | |
branches: | |
- '**' | |
paths-ignore: | |
- 'docs/index.html' | |
pull_request: | |
jobs: | |
ci: | |
if: ${{ github.ref == 'refs/heads/main' || github.event_name == 'pull_request'}} | |
runs-on: ubuntu-latest | |
concurrency: deploy | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Install packages | |
run: npm ci | |
- name: Lint code | |
run: npm run lint | |
timeout-minutes: 5 | |
- name: Test code | |
run: npm run test | |
timeout-minutes: 1 | |
- name: Create a release | |
if: github.event_name == 'push' | |
run: npm run release | |
timeout-minutes: 5 | |
env: | |
# Has write access to packages | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
GOOGLE_CHAT_WEBHOOK: ${{ secrets.RELEASE_GOOGLE_CHAT_WEBHOOK }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
document: | |
runs-on: ubuntu-latest | |
if: ${{ github.ref != 'refs/heads/main' && github.event_name == 'push' && github.actor != 'dependabot[bot]'}} | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Install packages | |
run: npm ci | |
- name: generate documentation | |
run: npm run build:documentation | |
- name: setup git config | |
run: | | |
git config user.name "GitHub Actions Documentation Bot" | |
git config user.email "<>" | |
- name: commit | |
run: | | |
# Stage the documentation file, commit and push | |
git add docs/index.html | |
git diff-index --quiet HEAD || (git commit -m "chore: Documentation updated by github actions" && git push) |