From ca6a03536a5cbb39bfde2354034dee2bdc9ce4f4 Mon Sep 17 00:00:00 2001 From: Andrew Meyer Date: Tue, 8 Nov 2022 16:05:21 +0100 Subject: [PATCH] Fix publish templates --- .github/workflows/publish-templates.yml | 5 ++++- templates/scripts/publish_templates.sh | 2 -- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish-templates.yml b/.github/workflows/publish-templates.yml index 531fdf8353..d05921cc48 100644 --- a/.github/workflows/publish-templates.yml +++ b/.github/workflows/publish-templates.yml @@ -16,10 +16,13 @@ jobs: with: node-version: 16 cache: 'npm' + registry-url: 'https://registry.npmjs.org' cache-dependency-path: '**/package-lock.json' - name: Setup NPM version run: npm install -g npm@8 - name: Publish templates - run: templates/scripts/publish_templates.sh ${{secrets.NPM_TOKEN}} + run: templates/scripts/publish_templates.sh + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/templates/scripts/publish_templates.sh b/templates/scripts/publish_templates.sh index ed54e5190b..c5ef1b6f31 100755 --- a/templates/scripts/publish_templates.sh +++ b/templates/scripts/publish_templates.sh @@ -1,8 +1,6 @@ #!/bin/bash set -e -NODE_AUTH_TOKEN=$1 - templates_location="$(dirname $(readlink -e $0))/.." for template in "$templates_location"/*-template-*; do