Skip to content

Commit

Permalink
chore(monorepo): disable docs build and ci and vercel (#2791)
Browse files Browse the repository at this point in the history
  • Loading branch information
alber70g authored Jan 15, 2025
1 parent bb0f39c commit ec2d7d9
Show file tree
Hide file tree
Showing 7 changed files with 51 additions and 149 deletions.
45 changes: 0 additions & 45 deletions .github/workflows/chainweb-node-changelogs.yml

This file was deleted.

102 changes: 51 additions & 51 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ env:
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
CI: true
# comma separated list of allowed authors for docs PRs
ALLOWED_DOCS_AUTHORS: lsgunnlsgunn,
# ALLOWED_DOCS_AUTHORS: lsgunnlsgunn,

permissions:
pull-requests: write
Expand Down Expand Up @@ -72,7 +72,7 @@ jobs:
strategy:
fail-fast: false
matrix:
app: ['tools', 'docs', 'graph']
app: ['tools', 'graph']

steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -141,51 +141,51 @@ jobs:
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

auto-approve-docs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 2
show-progress: false

- name: Check PR author
id: check_author
run: echo "author=${{ github.event.pull_request.user.login }}" >> $GITHUB_OUTPUT

- uses: pnpm/action-setup@v3
if: contains(env.ALLOWED_DOCS_AUTHORS, steps.check_author.outputs.author)
with:
version: 9

- uses: actions/setup-node@v4
if: contains(env.ALLOWED_DOCS_AUTHORS, steps.check_author.outputs.author)
with:
node-version: 20

- name: Install dependencies
if: contains(env.ALLOWED_DOCS_AUTHORS, steps.check_author.outputs.author)
shell: bash
run: pnpm install --filter @kadena-dev/scripts

- name: Run file check script
if: contains(env.ALLOWED_DOCS_AUTHORS, steps.check_author.outputs.author)
id: check_files
run: |
git fetch origin main:refs/remotes/origin/main
set +e
chmod +x ./packages/tools/scripts/check-changed-files.mjs
./packages/tools/scripts/check-changed-files.mjs
echo "exitcode=$?" >> $GITHUB_OUTPUT
exit 0
- name: Approve PR
if: steps.check_files.outputs.exitcode == 0 && contains(env.ALLOWED_DOCS_AUTHORS, steps.check_author.outputs.author)
uses: hmarr/auto-approve-action@v4
with:
pull-request-number: ${{ github.event.inputs.pullRequestNumber }}
review-message: "Auto approved by [auto-approve-action](https://github.com/kadena-community/kadena.js/blob/main/.github/workflows/ci.yml#L186)"
# auto-approve-docs:
# runs-on: ubuntu-latest

# steps:
# - uses: actions/checkout@v4
# with:
# fetch-depth: 2
# show-progress: false

# - name: Check PR author
# id: check_author
# run: echo "author=${{ github.event.pull_request.user.login }}" >> $GITHUB_OUTPUT

# - uses: pnpm/action-setup@v3
# if: contains(env.ALLOWED_DOCS_AUTHORS, steps.check_author.outputs.author)
# with:
# version: 9

# - uses: actions/setup-node@v4
# if: contains(env.ALLOWED_DOCS_AUTHORS, steps.check_author.outputs.author)
# with:
# node-version: 20

# - name: Install dependencies
# if: contains(env.ALLOWED_DOCS_AUTHORS, steps.check_author.outputs.author)
# shell: bash
# run: pnpm install --filter @kadena-dev/scripts

# - name: Run file check script
# if: contains(env.ALLOWED_DOCS_AUTHORS, steps.check_author.outputs.author)
# id: check_files
# run: |
# git fetch origin main:refs/remotes/origin/main
# set +e
# chmod +x ./packages/tools/scripts/check-changed-files.mjs
# ./packages/tools/scripts/check-changed-files.mjs
# echo "exitcode=$?" >> $GITHUB_OUTPUT
# exit 0

# - name: Approve PR
# if: steps.check_files.outputs.exitcode == 0 && contains(env.ALLOWED_DOCS_AUTHORS, steps.check_author.outputs.author)
# uses: hmarr/auto-approve-action@v4
# with:
# pull-request-number: ${{ github.event.inputs.pullRequestNumber }}
# review-message: "Auto approved by [auto-approve-action](https://github.com/kadena-community/kadena.js/blob/main/.github/workflows/ci.yml#L186)"

ci-gate:
if: always()
Expand Down Expand Up @@ -216,25 +216,25 @@ jobs:
type=ref,event=branch
type=ref,event=tag
type=ref,event=pr
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Cache Docker layers
uses: actions/cache@v4
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push
id: docker_build
uses: docker/build-push-action@v6
Expand Down
35 changes: 0 additions & 35 deletions .github/workflows/docs-ingestion.yml

This file was deleted.

18 changes: 0 additions & 18 deletions packages.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,18 +71,6 @@
"private": true,
"path": "packages/apps/dev-wallet-example"
},
{
"name": "@kadena/docs",
"version": "0.8.0",
"private": true,
"path": "packages/apps/docs"
},
{
"name": "@kadena/docs-tools",
"version": "0.2.2",
"private": true,
"path": "packages/tools/docs-tools"
},
{
"name": "@kadena/explorer",
"version": "0.9.0",
Expand Down Expand Up @@ -239,12 +227,6 @@
"private": false,
"path": "packages/tools/shared-config"
},
{
"name": "e2e-docs",
"version": "0.0.1",
"private": true,
"path": "packages/e2e/e2e-docs"
},
{
"name": "e2e-graph",
"version": "0.0.2",
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit ec2d7d9

Please sign in to comment.