Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add prod args have an error invalidTagName #6

Closed
bestony opened this issue Dec 1, 2019 · 1 comment · Fixed by #8
Closed

Add prod args have an error invalidTagName #6

bestony opened this issue Dec 1, 2019 · 1 comment · Fixed by #8
Labels
Type: Bug Bug or Bug fixes

Comments

@bestony
Copy link

bestony commented Dec 1, 2019

Description

if i add now-args: '--prod', it can't pass the deploy ,with error Error: Invalid tag name "now --prod": Tags may not have any characters that encodeURIComponent encodes.
image

Code

name: hexo deploy 

on: [push]

jobs:
  build:

    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v1
    - name: Setup node
      uses: actions/setup-node@v1.1.0
      with:
        version: 13
    - name: Install
      run: npm install hexo-cli -g && npm install
    - name: Cache
      uses: actions/cache@v1.0.3
      with:
        key: node-cache
        path: node_modules
    - name: Build
      run: hexo g 
    - name: Deploy
      uses: amondnet/now-deployment@v1
      with:
        zeit-token: ${{secrets.NOW_TOKEN}}
        github-token: ${{ secrets.GH_TOKEN }}
        now-args: '--prod'
@foxundermoon
Copy link

also meet the error

Run amondnet/now-deployment@v1
npx now --no-clipboard -t *** -m githubCommitSha=0857f0c88c2a2c8259c21181703ab2d287f72ffb -m githubCommitAuthorName=foxundermoon -m githubCommitAuthorLogin=foxundermoon -m githubDeployment=1 -m githubOrg=foxmn -m githubRepo=admin -m githubCommitOrg=foxmn -m githubCommitRepo=admin -m githubCommitMessage=Merge 783af18b10092b74a22c04558f1b262484458026 into d9e771f61c5b62e7b717831d268829d0e9dad2b9
/usr/local/lib/node_modules/npm/node_modules/npm-package-arg/npa.js:296
      throw invalidTagName(spec)
      ^

Error: Invalid tag name "now --no-clipboard": Tags may not have any characters that encodeURIComponent encodes.
    at invalidTagName (/usr/local/lib/node_modules/npm/node_modules/npm-package-arg/npa.js:91:15)
    at fromRegistry (/usr/local/lib/node_modules/npm/node_modules/npm-package-arg/npa.js:296:13)
    at resolve (/usr/local/lib/node_modules/npm/node_modules/npm-package-arg/npa.js:81:12)
    at npa (/usr/local/lib/node_modules/npm/node_modules/npm-package-arg/npa.js:52:10)
    at fastPathArgs (/usr/local/lib/node_modules/npm/node_modules/libnpx/parse-args.js:105:17)
    at Function.parseArgs (/usr/local/lib/node_modules/npm/node_modules/libnpx/parse-args.js:11:12)
    at Object.<anonymous> (/usr/local/lib/node_modules/npm/bin/npx-cli.js:8:9)
    at Module._compile (internal/modules/cjs/loader.js:956:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:973:10)
    at Module.load (internal/modules/cjs/loader.js:812:32) {
  code: 'EINVALIDTAGNAME'
}

/usr/local/lib/node_modules/npm/node_modules/npm-package-arg/npa.js:296
      throw invalidTagName(spec)

@amondnet amondnet added the Type: Bug Bug or Bug fixes label Dec 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Bug or Bug fixes
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants