Skip to content

Check new version and publish #3

Check new version and publish

Check new version and publish #3

Workflow file for this run

name: NPM Publish
run-name: Check new version and publish
on:
pull_request:
branches:
- main
types:
- closed
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-latest
if: ${{ github.event.pull_request.merged }}
steps:
- uses: actions/checkout@v3
- id: version
uses: EndBug/[email protected]
with:
file-url: https://unpkg.com/@jenniferplusplus/opentelemetry-instrumentation-bullmq@latest/package.json
static-checking: localIsNew
- name: Use Node.js
if: steps.version.outputs.changed == 'true'
uses: actions/setup-node@v3
with:
node-version: 18.x
- name: Install
if: steps.version.outputs.changed == 'true'
run: npm ci
- name: Compile
if: steps.version.outputs.changed == 'true'
run: npm run compile
- name: NPM Publish
if: steps.version.outputs.changed == 'true'
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
access: public