chore(deps): update all #1317
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@v3 | |
- name: Use Node ${{ matrix.node }} | |
uses: actions/setup-node@v3 | |
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@v3 | |
- name: 'Use Node ${{ matrix.node }}' | |
uses: actions/setup-node@v3 | |
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}}' |