remove private; version bump #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |