Skip to content

Feature/latest updates #2

Feature/latest updates

Feature/latest updates #2

Workflow file for this run

# This workflow will do a clean install of node dependencies and publishes via npm
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Node.js Publish CI
on:
pull_request:
types: [ closed ]
branches: [ master ]
jobs:
build:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: 20.x
registry-url: 'https://registry.npmjs.org'
- run: npm install
env:
CI: true
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_API_KEY }}