Skip to content

Bump cross-spawn from 7.0.3 to 7.0.6 #71

Bump cross-spawn from 7.0.3 to 7.0.6

Bump cross-spawn from 7.0.3 to 7.0.6 #71

Workflow file for this run

name: Node.js CI
on:
push:
branches: [main]
tags: [v*]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: textbook/take-action@nodejs
with:
node-version: '18'
- run: npm ci
- run: npm run lint
- run: npm run test:examples
- run: npm run types
- run: npm pack
- uses: actions/upload-artifact@v4
with:
if-no-files-found: error
name: package
path: codeyourfuture-eslint-config-standard-*.tgz
test:
runs-on: ubuntu-22.04
needs: build
strategy:
matrix:
eslint: [8.27, 8, 9.0, 9]
node: [18.18, 18, 20.9, 20, 22]
steps:
- uses: textbook/take-action@nodejs
with:
node-version: ${{ matrix.node }}
- uses: actions/download-artifact@v4
with:
name: package
- run: npm ci
- run: npm run test:install
env:
ESLINT_VERSION: ${{ matrix.eslint }}
PACK: 'false'
deploy-github:
runs-on: ubuntu-22.04
if: startsWith(github.ref, 'refs/tags/v')
needs: [test]
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: package
- run: |
gh release create \
'${{ github.ref_name }}' \
--title '${{ github.ref_name }}' \
codeyourfuture-eslint-config-standard-*.tgz
env:
GH_TOKEN: ${{ github.token }}
deploy-npm:
runs-on: ubuntu-22.04
if: startsWith(github.ref, 'refs/tags/v')
needs: [test]
steps:
- uses: textbook/take-action@nodejs
with:
node-version: '18'
- run: npm config set '//registry.npmjs.org/:_authToken' "${NPM_AUTH_TOKEN}"
env:
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
- uses: actions/download-artifact@v4
with:
name: package
- run: npm publish codeyourfuture-eslint-config-standard-*.tgz