Skip to content

chore: dependency upgrade new versioning (major, minor, patch and dep… #40

chore: dependency upgrade new versioning (major, minor, patch and dep…

chore: dependency upgrade new versioning (major, minor, patch and dep… #40

Workflow file for this run

name: Node.js Package
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
# Add 'if' condition here to check the branch name
if: "!contains(github.ref, 'patch')"
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20
cache: 'yarn'
- run: yarn install --frozen-lockfile
- run: yarn test
publish-npm:
needs: build
runs-on: ubuntu-latest
# Add 'if' condition here as well to ensure consistency
if: "!contains(github.ref, 'patch')"
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20
registry-url: https://registry.npmjs.org/
cache: 'yarn'
- run: yarn install --frozen-lockfile
- run: yarn publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTOMATION_TOKEN}}