diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml deleted file mode 100644 index 4613569..0000000 --- a/.github/workflows/labeler.yml +++ /dev/null @@ -1,22 +0,0 @@ -# This workflow will triage pull requests and apply a label based on the -# paths that are modified in the pull request. -# -# To use this workflow, you will need to set up a .github/labeler.yml -# file with configuration. For more information, see: -# https://github.com/actions/labeler - -name: Labeler -on: [pull_request_target] - -jobs: - label: - - runs-on: ubuntu-latest - permissions: - contents: read - pull-requests: write - - steps: - - uses: actions/labeler@v4 - with: - repo-token: "${{ secrets.GITHUB_TOKEN }}" diff --git a/.github/workflows/manual.yml b/.github/workflows/manual.yml index 11b2e35..f5e0507 100644 --- a/.github/workflows/manual.yml +++ b/.github/workflows/manual.yml @@ -29,4 +29,4 @@ jobs: steps: # Runs a single command using the runners shell - name: Send greeting - run: echo "Hello ${{ inputs.name }}" + run: echo "Hello ${{ github.event.inputs.name }}" diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml deleted file mode 100644 index c8f7221..0000000 --- a/.github/workflows/node.js.yml +++ /dev/null @@ -1,77 +0,0 @@ -name: Node.js CI - -on: - push: - branches: ['main', 'develop'] - pull_request: - branches: ['main', 'develop'] - -jobs: - build: - runs-on: ubuntu-latest - - strategy: - matrix: - node-version: [18.x, 20.x, 22.x] - # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ - - steps: - # Checkout the code - - uses: actions/checkout@v4 - - # Set up - - uses: pnpm/action-setup@v4 - name: Install pnpm - with: - version: 9 - run_install: false - - # Set up Node.js - - name: Set up Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v4 - with: - node-version: ${{ matrix.node-version }} - cache: 'pnpm' # Cache pnpm instead of npm - - # Install pnpm - - name: Install pnpm - run: corepack enable pnpm - - - name: Debug Node and pnpm - run: | - node --version - pnpm --version - - # Install dependencies using pnpm - - name: Install Dependencies - run: pnpm install --frozen-lockfile - - # Run build (Nx should handle the build, can be adjusted if specific commands are needed) - - name: Build the project - run: pnpm run build - - # Run tests using Nx (adjust the test command if needed for Nx-specific testing) - # - name: Run Tests - # run: pnpm run test - - # Optionally, you can also run linting if set up in Nx - - name: Run Lint - run: pnpm run lint - - - # Format the code - - name: Format Code - run: pnpm format - - # Commit and push changes if any files were formatted - - name: Commit and Push Changes - run: | - git config --global user.name 'github-actions[bot]' - git config --global user.email 'github-actions[bot]@users.noreply.github.com' - git add . - if ! git diff-index --quiet HEAD; then - git commit -m "Auto format code" - git push - fi - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/read-the-docs.yaml b/.github/workflows/read-the-docs.yaml deleted file mode 100644 index 6022647..0000000 --- a/.github/workflows/read-the-docs.yaml +++ /dev/null @@ -1,38 +0,0 @@ -# Read the Docs configuration file -# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details - -name: Read the Docs - -on: - push: - branches: - - main - pull_request: - branches: - - main - -jobs: - build: - runs-on: ubuntu-latest - - steps: - - name: Checkout repository - uses: actions/checkout@v2 - - - name: Set up Node.js - uses: actions/setup-node@v2 - with: - node-version: '16' - - - name: Install Docusaurus dependencies - run: | - cd docs/ && npm install - - - name: Build the site - run: | - cd docs/ && npm run build - - - name: Copy generated files into Read the Docs directory - run: | - mkdir --parents $READTHEDOCS_OUTPUT/html/ - cp --recursive docs/build/* $READTHEDOCS_OUTPUT/html/ \ No newline at end of file