Skip to content

Commit

Permalink
prebuilt-tdlib workflow: Add default value for npm-tag
Browse files Browse the repository at this point in the history
  • Loading branch information
eilvelia committed Apr 16, 2024
1 parent a678b92 commit ccc904a
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/prebuilt-tdlib.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ on:
description: 'npm tag (e.g. latest, beta)'
type: string
required: false
default: 'latest'
# NOTE: The ZLIB_USE_STATIC_LIBS option requires CMake >= 3.24
jobs:
build-linux-x64:
Expand Down Expand Up @@ -255,12 +256,7 @@ jobs:
run: npm version ${{ inputs.npm-version }} --no-git-tag-version -w prebuilt-tdlib
- name: Publish
run: |
if test -z "{{ inputs.npm-tag }}"
then
npm publish -w prebuilt-tdlib
else
npm publish --tag ${{ inputs.npm-tag }} -w prebuilt-tdlib
fi
npm publish --tag ${{ inputs.npm-tag }} -w prebuilt-tdlib
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Set the td- tag
Expand Down

0 comments on commit ccc904a

Please sign in to comment.