build(deps-dev): bump @types/node from 20.4.5 to 20.4.8 #931
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: 'Pull Request' | |
on: ['pull_request'] | |
# Для расширения доступа Dependabot | |
# | |
# https://github.com/peter-evans/create-or-update-comment/issues/103 | |
permissions: | |
pull-requests: write | |
jobs: | |
docs: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
cache: 'yarn' | |
node-version: 18 | |
- run: YARN_ENABLE_SCRIPTS=false yarn install --immutable | |
- run: yarn build | |
- name: Uploading docs artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: docs | |
path: packages/icons/docs/ | |
deploy_docs: | |
runs-on: ubuntu-latest | |
needs: docs | |
# Skip deploy from forked repo | |
if: github.event.pull_request.base.repo.id == github.event.pull_request.head.repo.id | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Download docs artifact | |
uses: actions/download-artifact@v3 | |
with: | |
name: docs | |
path: tmp | |
- name: Publishing docs to GitHub pages | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
token: ${{ secrets.DEVTOOLS_GITHUB_TOKEN }} | |
commit-message: 'Publish PR ${{ github.event.pull_request.number }}' | |
branch: gh-pages | |
folder: tmp | |
target-folder: pull/${{ github.event.pull_request.number }} | |
clean: true | |
force: false | |
- name: Find docs URL comment | |
uses: peter-evans/find-comment@v2 | |
id: find_url_comment | |
with: | |
issue-number: ${{ github.event.pull_request.number }} | |
comment-author: 'github-actions[bot]' | |
body-includes: <!-- docs_url --> | |
- name: Post docs URL to PR | |
if: steps.find_url_comment.outputs.comment-id == 0 | |
uses: peter-evans/create-or-update-comment@v3 | |
with: | |
issue-number: ${{ github.event.pull_request.number }} | |
body: | | |
<!-- docs_url --> | |
## 👀 Docs deployed | |
See the docs for this PR at https://vkcom.github.io/icons/pull/${{ github.event.pull_request.number }}/ | |
size: | |
runs-on: ubuntu-latest | |
env: | |
CI_JOB_NUMBER: 1 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: 'yarn' | |
- run: YARN_ENABLE_SCRIPTS=false yarn install --immutable | |
- run: yarn workspace @vkontakte/icons-sprite build | |
- uses: andresz1/[email protected] | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
# only affects current branch | |
skip_step: install | |
build_script: 'icons-build' | |
# in order to call proper size-limit command during migration to yarn workspaces the script name to | |
# run size-limit has changed bacuse root icons package has been moved to /packages/icons/ | |
# size-limit-action calls same script for master branch and pr branch to compare size-limit results, | |
# but master branch package.json doesn't have script from pr branch, so it falls. | |
# Here we run the new PR script with a fallback to default size-limit script | |
# when size-limit-action checkout to master to compare. | |
# TODO: Feel free to leave just 'script: yarn run icons:size:ci' once #588 released | |
script: /bin/bash -c "cat package.json | grep -q 'icons:size:ci' && yarn run icons:size:ci || npx size-limit --json" | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
cache: 'yarn' | |
node-version: 18 | |
- run: YARN_ENABLE_SCRIPTS=false yarn install --immutable | |
- run: yarn test |