Skip to content

chore(deps): update all (major) #1369

chore(deps): update all (major)

chore(deps): update all (major) #1369

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
paths-ignore:
- '.gitignore'
- '.npmignore'
- '*.md'
jobs:
build:
name: Lint, and test on Node ${{ matrix.node }} and ${{ matrix.os }}
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Use Node ${{ matrix.node }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- name: Install deps and build (with cache)
uses: bahmutov/npm-install@v1
- name: Lint
run: npm run lint
- name: Test
run: npm run test
- name: Build
run: npm run tsc
publish-module:
name: 'Publish Module to NPM on Node ${{ matrix.node }} and ${{ matrix.os }}'
needs: build
if: github.repository == 'jorisre/react-telephone' && (github.ref =='refs/heads/main')
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: 'Use Node ${{ matrix.node }}'
uses: actions/setup-node@v4
with:
node-version: '${{ matrix.node }}'
registry-url: 'https://registry.npmjs.org/'
- name: Install dependencies
uses: bahmutov/npm-install@v1
- name: Build
run: npm run build
- name: Publish
run: npx semantic-release
env:
NODE_AUTH_TOKEN: '${{secrets.NPM_TOKEN}}'
GITHUB_TOKEN: '${{secrets.GITHUB_TOKEN}}'