Skip to content

Merge pull request #81 from acuciureanu/dependabot/npm_and_yarn/husky… #192

Merge pull request #81 from acuciureanu/dependabot/npm_and_yarn/husky…

Merge pull request #81 from acuciureanu/dependabot/npm_and_yarn/husky… #192

Workflow file for this run

name: Node.js Package
on:
push:
branches: [main]
pull_request:
branches: '*'
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node-version: ['20.11.1']
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
publish:
runs-on: ubuntu-latest
if: ${{ github.ref == 'refs/heads/main' }}
needs: build
steps:
- uses: actions/checkout@v4
- name: Use Node.js 20.11.1
uses: actions/setup-node@v4
with:
node-version: '20.11.1'
- run: npm ci
- run: npm run semantic-release
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}