Skip to content

Update readme.md to use the GH Actions badge #3

Update readme.md to use the GH Actions badge

Update readme.md to use the GH Actions badge #3

Workflow file for this run

name: Node.js CI
on:
push:
branches: [ "master" ]
tags:
- v**
pull_request:
branches: [ "master" ]
env:
RUN_INTEGRATION_TESTS: 1
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm test
publish-npm:
needs: build
runs-on: ubuntu-latest
if: startsWith(github.event.ref, 'refs/tags/v')
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
registry-url: https://registry.npmjs.org/
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}