Skip to content

Updated github action files #1

Updated github action files

Updated github action files #1

Workflow file for this run

name: Production-Stage
on:
pull_request:
branches:
- main
jobs:
publish:
if: ${{ github.event.pull_request.merged }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
run: npm install
- name: Run tests
run: npm test
- name: Build project
run: npm run build
- uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NPM }}