mirror of
				https://gitlab.nic.cz/turris/reforis/foris-js.git
				synced 2025-11-03 23:00:31 +01:00 
			
		
		
		
	Fix access token in publish script
As npm has a new access token format https://github.blog/changelog/2021-09-23-npm-has-a-new-access-token-format/
This commit is contained in:
		@@ -6,8 +6,7 @@ then
 | 
				
			|||||||
    exit 1
 | 
					    exit 1
 | 
				
			||||||
else
 | 
					else
 | 
				
			||||||
    cd dist
 | 
					    cd dist
 | 
				
			||||||
    # Need to replace "_" with "-" as GitLab CI won't accept secret vars with "-"
 | 
					    echo "//registry.npmjs.org/:_authToken=$(echo "$NPM_TOKEN")" > .npmrc
 | 
				
			||||||
    echo "//registry.npmjs.org/:_authToken=$(echo "$NPM_TOKEN" | tr _ -)" > .npmrc
 | 
					 | 
				
			||||||
    echo "unsafe-perm = true" >> ~/.npmrc
 | 
					    echo "unsafe-perm = true" >> ~/.npmrc
 | 
				
			||||||
    if test "$1" = "beta"
 | 
					    if test "$1" = "beta"
 | 
				
			||||||
    then
 | 
					    then
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user