Skip to content

chore(deps/npm): bump the lint group across 1 directory with 3 updates #180

chore(deps/npm): bump the lint group across 1 directory with 3 updates

chore(deps/npm): bump the lint group across 1 directory with 3 updates #180

Workflow file for this run

name: Node.js CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [lts/*, latest]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- name: Install dependencies
run: npm ci
lint:
runs-on: ubuntu-latest
needs: build
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: latest
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Lint
run: npm run lint
# test:
# runs-on: ubuntu-latest
# needs: build
# steps:
# - name: Checkout repository
# uses: actions/checkout@v4
# - name: Install Node.js
# uses: actions/setup-node@v4
# with:
# node-version: latest
# cache: 'npm'
# - name: Install dependencies
# run: npm ci
# - name: Test
# run: npm run test
# - name: Upload code coverage
# uses: codecov/codecov-action@v3
# with:
# token: ${{ secrets.CODECOV_TOKEN }}
# verbose: true
is-publishable:
runs-on: ubuntu-latest
needs: build
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: latest
cache: 'npm'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: npm ci
- name: Check if publishable
run: npm publish --access public --dry-run
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
ci-success:
runs-on: ubuntu-latest
if: ${{ success() && github.event_name == 'push' }}
needs:
- build
- lint
# - test
# - docs
- is-publishable
steps:
- name: ✅ CI succeeded
run: exit 0
ci-success-pr:
runs-on: ubuntu-latest
if: ${{ success() && github.event_name == 'pull_request' }}
needs:
- build
- lint
# - test
- is-publishable
steps:
- name: ✅ CI succeeded
run: exit 0