Skip to content

Update README.md

Update README.md #28

Workflow file for this run

# This workflow will do publish your package to npm - asdevs npm
name: NPM package Publish
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
quality:
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 --if-present
publish:
runs-on: ubuntu-latest
if: ${{github.ref == 'refs/heads/main'}}
needs: [quality]
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 run semantic-release
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}