-
Notifications
You must be signed in to change notification settings - Fork 3
39 lines (37 loc) · 1.05 KB
/
publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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