forked from kafkajs/confluent-schema-registry
-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (38 loc) · 1.02 KB
/
release.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
40
name: release
on:
pull_request:
types: [closed]
push:
branches:
- 'fix/ARCH-4426'
jobs:
publish:
# if: |
# github.event.pull_request.merged == true &&
# github.base_ref == 'master' &&
# !contains(github.event.pull_request.labels.*.name, 'no-auto-release')
# needs: release
name: Publish NPM Package
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v3
with:
node-version: '18.x'
registry-url: 'https://npm.pkg.github.com'
scope: '@pluto-tv'
- uses: actions/checkout@v3
# - uses: ./.github/actions/setup-ssh
# with:
# key: ${{ secrets.PLUTO_DEPLOY_SSH_KEY }}
- name: Publish NPM Package
env:
NODE_AUTH_TOKEN: ${{ secrets.GH_PKG_REPO_TOKEN }}
run: |
env
npm install --silent
npm publish
- name: Check Publish Status
if: ${{ failure() }}
run: |
echo "Error: Failed to publish Node client package."
exit 1