Skip to content

build(deps): bump protobufjs from 6.11.3 to 6.11.4 #236

build(deps): bump protobufjs from 6.11.3 to 6.11.4

build(deps): bump protobufjs from 6.11.3 to 6.11.4 #236

Workflow file for this run

name: CI
on:
push:
branches: ['develop', 'main']
pull_request:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
lint:
runs-on: ubuntu-latest
container: node:16-buster
steps:
- uses: actions/checkout@v3
- name: Cache npm
uses: actions/cache@v3
with:
path: |
~/cache
!~/cache/exclude
**/node_modules
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}
# Install deps
- name: Install deps
run: npm ci
# Run linter
- name: Run linter
run: npm run lint:check
# Run Prettier
- name: Run prettier
run: npm run format:check
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '16.14.0'
- name: Cache npm
uses: actions/cache@v3
with:
path: |
~/cache
!~/cache/exclude
**/node_modules
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}
# Install deps
- name: Install deps
run: npm ci
- name: Build
run: npm run build
# run tests
- name: Run tests
run: npm run test-cov
# Upload coverage to Codecov
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
release:
name: Release
runs-on: ubuntu-latest
needs: [lint, test]
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/develop'
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
persist-credentials: false
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '16.14.0'
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm run release