-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove kaltura patch version from canary chanel (#759)
* 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
1 parent
8f633b0
commit b386959
Showing
1 changed file
with
23 additions
and
52 deletions.
There are no files selected for viewing
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
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: | ||
|
@@ -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 }} | ||
# |