diff --git a/action.yml b/action.yml index 73a271a5..61994700 100644 --- a/action.yml +++ b/action.yml @@ -5,9 +5,6 @@ inputs: description: 'The prefix used for branches of release PRs.' default: 'release/' required: true - npm-token: - description: 'The token used for npm publishing. Publishing to npm will be skipped if omitted.' - required: false outputs: release-version: @@ -34,9 +31,3 @@ runs: run: | ${{ github.action_path }}/scripts/create-github-release.sh \ ${{ steps.get-release-version.outputs.RELEASE_VERSION }} - - - id: Publish - shell: bash - run: ${{ github.action_path }}/scripts/npm-publish.sh - env: - NPM_TOKEN: ${{ inputs.npm-token }} diff --git a/scripts/npm-publish.sh b/scripts/npm-publish.sh deleted file mode 100755 index e7a6d809..00000000 --- a/scripts/npm-publish.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/usr/bin/env bash - -set -x -set -e -set -o pipefail - -if [[ -z $NPM_TOKEN ]]; then - echo "Notice: NPM_TOKEN environment variable not set. Skipping npm publishing." -else - npm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN} - npm publish -fi