Skip to content

Bump lint-staged from 15.5.0 to 16.2.5 #278

Bump lint-staged from 15.5.0 to 16.2.5

Bump lint-staged from 15.5.0 to 16.2.5 #278

Workflow file for this run

# .github/workflows/npm-publish.yml
name: Build and Publish
on:
push:
branches-ignore:
- main
- master
pull_request:
branches:
- main
- master
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: npm ci
- name: Lint
run: npm run lint
- name: Authenticate Snyk
run: npx snyk auth $SNYK_TOKEN
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
- name: Run full CI process (build, test, snyk, sonar)
run: npm run ci
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL || 'https://sonarcloud.io' }}
publish:
needs: build
if: github.event_name == 'release'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Publish to NPM
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}