Skip to content

v1.3.1 bug-fix: Updated workflow file to fix the infinite run bug #3

v1.3.1 bug-fix: Updated workflow file to fix the infinite run bug

v1.3.1 bug-fix: Updated workflow file to fix the infinite run bug #3

Workflow file for this run

name: Publish-to-npm
on:
pull_request:
branches: [main]
types:
- closed
push:
branches: [main]
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 20
- name: Install Dependencies
run: npm ci
- name: Create a build
run: npm link
- name: Publish to NPM
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}