Skip to content

chore(dep): Updating knip from 5.83.1 to 6.4.0 #296

chore(dep): Updating knip from 5.83.1 to 6.4.0

chore(dep): Updating knip from 5.83.1 to 6.4.0 #296

Workflow file for this run

name: Run Test Suite
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
release:
types: [released, prereleased]
permissions: {}
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Setup Node.js
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
with:
node-version: '22'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Run tests
run: npm run test-coverage
env:
NODE_OPTIONS: --experimental-vm-modules
- name: Upload coverage to Codecov
uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v6.0.0
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage/lcov.info
fail_ci_if_error: false
verbose: true
publish:
name: >-
Publish cli 📦 to NPM
if:
github.repository_owner == 'all-contributors' && github.event_name ==
'release'
needs:
- test
runs-on: ubuntu-latest
environment:
name: npm-publish
url: https://www.npmjs.com/package/all-contributors-cli
permissions:
id-token: write # mandatory for OIDC / NPM publishing
contents: read
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
with:
node-version: '24'
registry-url: 'https://registry.npmjs.org'
# Ensure npm 11.5.1 or later for trusted publishing
- name: Install latest version of npm
run: npm install -g npm@latest
- name: Install deps and build package
run: |
npm ci
npm run build
- name: Publish to NPM via trusted publishing (tag next if prerelease)
run: |
if [[ "${{ github.event.release.prerelease }}" == "true" ]]; then
npm publish --provenance --tag next
else
npm publish --provenance
fi