Skip to content

Commit

Permalink
remove kaltura patch version from canary chanel (#759)
Browse files Browse the repository at this point in the history
* fix(/FEC-13641): Add 'patch' tag to npm versions


* remove kaltura patch version from canary chanel
---------

Co-authored-by: JonathanTGold <jonathan.gold@[email protected]>
  • Loading branch information
JonathanTGold and JonathanTGold authored Jan 14, 2024
1 parent 8f633b0 commit b386959
Showing 1 changed file with 23 additions and 52 deletions.
75 changes: 23 additions & 52 deletions .github/workflows/run_patch.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
name: Create patch version
name: Patch

on:
workflow_dispatch:
inputs:
npmTag:
description: 'Select NPM Tag'
required: true
type: choice
options:
- experimental
- patch
default: 'patch'

jobs:
update-tag:
Expand All @@ -15,60 +24,22 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: "20.x"
registry-url: 'https://registry.npmjs.org/'

- name: Update NPM Tag
- name: Install Dependencies
run: yarn install

- name: Build Project
run: yarn build

- name: Publish to NPM
run: |
npm set registry "https://registry.npmjs.org"
echo "//registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN" > .npmrc
npm dist-tag add @playkit-js/[email protected] canary
npm version patch
npm publish --tag ${{ github.event.inputs.npmTag }}
rm -rf .npmrc
env:
NPM_AUTH_TOKEN: ${{ secrets.PLAYER_NPM_TOKEN }}
NPM_TOKEN: ${{ secrets.PLAYER_NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.PLAYER_NPM_TOKEN }}
NPM_AUTH_TOKEN: ${{ secrets.PLAYER_NPM_TOKEN }}
NPM_TOKEN: ${{ secrets.PLAYER_NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.PLAYER_NPM_TOKEN }}

#name: Patch
#
#on:
# workflow_dispatch:
# inputs:
# npmTag:
# description: 'Select NPM Tag'
# required: true
# type: choice
# options:
# - experimental
# - patch
# default: 'patch'
#
#jobs:
# update-tag:
# runs-on: ubuntu-latest
#
# steps:
# - name: Checkout Repository
# uses: actions/checkout@v3
#
# - name: Setup Node.js
# uses: actions/setup-node@v3
# with:
# node-version: "20.x"
# registry-url: 'https://registry.npmjs.org/'
#
# - name: Install Dependencies
# run: yarn install
#
# - name: Build Project
# run: yarn build
#
# - name: Publish to NPM
# run: |
# echo "//registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN" > .npmrc
# npm version patch
# npm publish --tag ${{ github.event.inputs.npmTag }}
# rm -rf .npmrc
# env:
# NPM_AUTH_TOKEN: ${{ secrets.PLAYER_NPM_TOKEN }}
# NPM_TOKEN: ${{ secrets.PLAYER_NPM_TOKEN }}
# NODE_AUTH_TOKEN: ${{ secrets.PLAYER_NPM_TOKEN }}
#

0 comments on commit b386959

Please sign in to comment.