diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 1c827d0..b377883 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -16,10 +16,10 @@ jobs: node-version: 10.0.0 - name: Publish if version has been updated uses: houtianze/npm-publish-action@master - with: # All of theses inputs are optional + with: tag_name: "v%s" tag_message: "v%s" commit_pattern: "^(?:Release|Version) (\\S+)" - env: # More info about the environment variables in the README - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Leave this as is, it's automatically generated - NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} # You need to set this in your repo settings + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}