diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 45224b2d..9f966925 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,57 +4,18 @@ on: pull_request: jobs: - commit-lint: - name: Commit Lint + npm-restore-latest: runs-on: ubuntu-latest + permissions: + id-token: write steps: - uses: actions/checkout@v5 + - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 with: - fetch-depth: 0 - - uses: wagoid/commitlint-github-action@b948419dd99f3fd78a6548d48f94e3df7f6bf3ed # v6.2.1 + node-version-file: '.nvmrc' + registry-url: 'https://registry.npmjs.org' - code-quality: - name: Code Quality - needs: commit-lint - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v5 - - name: Setup Biome CLI - uses: biomejs/setup-biome@a9763ed3d2388f5746f9dc3e1a55df7f4609bc89 # v2.5.1 - - name: Run Biome - run: biome ci - - shellcheck: - name: Shell Script Linting - needs: code-quality - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v5 - - name: Install ShellCheck - run: sudo apt-get install shellcheck - - name: Run ShellCheck - run: shellcheck scripts/*.sh - - build-and-test: - needs: shellcheck - strategy: - fail-fast: false - max-parallel: 3 - matrix: - node: [20, 22, 24] - platform: [ubuntu-latest, macos-latest, windows-latest] - name: "${{matrix.platform}} w/ Node.js ${{matrix.node}}.x" - runs-on: ${{matrix.platform}} - env: - GRAPHQL_HOST: ${{ secrets.NEW_GRAPHQL_HOST }} - EOL_REPORT_URL: ${{ secrets.EOL_REPORT_URL }} - steps: - - uses: actions/checkout@v5 - - name: "Use Node.js ${{matrix.node}}.x" - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 - with: - node-version: ${{matrix.node}}.x - - run: npm ci - - run: npm run build - - run: npm test - - run: npm run test:e2e + - name: Restore latest tag + run: npm dist-tag add @herodevs/cli@0.3.1 latest + env: + NODE_AUTH_TOKEN: ${{ secrets.HD_CLI_NPM_TOKEN }} \ No newline at end of file