chore: dependency upgrade new versioning (major, minor, patch and dep… #40
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}} |