Skip to content

chore: update main branch #28

chore: update main branch

chore: update main branch #28

Workflow file for this run

name: 'πŸš€ Publish new release'
on:
push:
branches: [master]
jobs:
coverage:
name: Build
runs-on: ubuntu-latest
steps:
- name: πŸ“š Checkout git repository
uses: actions/checkout@v3
- name: 🟒 Setup Node.js
uses: actions/setup-node@v1
with:
node-version: 16
- name: πŸ›  Install dependencies
run: npm install
- name: βš™οΈ Create coverage
run: npm run test:coveralls
env:
COVERALLS_REPO_TOKEN: ${{secrets.COVERALLS_REPO_TOKEN}}
- name: πŸ“¨ Send report to Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{secrets.GITHUB_TOKEN}}
ci:
runs-on: ${{matrix.os}}
needs: coverage
strategy:
max-parallel: 24
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
node-version: [14.x, 16.x]
steps:
- name: πŸ“š Checkout git repository
uses: actions/checkout@v3
- name: 🟒 Setup Node.js ${{matrix.node-version}}
uses: actions/setup-node@v3
with:
node-version: ${{matrix.node-version}}
- name: πŸ›  Install Node.js dependencies
run: npm install
- name: πŸ€– Run tests
run: npm run test
publish:
name: 'πŸš€ Publish'
needs: [coverage, ci]
runs-on: ubuntu-latest
steps:
- name: πŸ“š Checkout git repository
uses: actions/checkout@v3
- name: 🟒 Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 16
registry-url: 'https://registry.npmjs.org'
- name: πŸ›  Install dependencies
run: npm install
- name: πŸ“¦ Publish package to NPM
run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}