diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 0583c07a0..2ca9a1e9f 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -38,9 +38,14 @@ jobs: - name: Build - Composeables run: yarn build:composables - - name: Copy .npmrc + - name: Create .npmrc shell: bash - run: cp scripts/.npmrc ~/.npmrc + run: | + echo "//registry.npmjs.org/:_authToken=${INPUT_TOKEN}\nregistry=https://registry.npmjs.org/\n@vue-storefront:registry=https://registry.npmjs.org/\n" > .npmrc + + - name: Copy .npmrc to root + shell: bash + run: cp .npmrc ~/.npmrc - name: Publish Packages shell: bash diff --git a/scripts/.npmrc b/scripts/.npmrc deleted file mode 100644 index b0a1cca28..000000000 --- a/scripts/.npmrc +++ /dev/null @@ -1,3 +0,0 @@ -//registry.npmjs.org/:_authToken=${INPUT_TOKEN} -registry=https://registry.npmjs.org/ -@vue-storefront:registry=https://registry.npmjs.org/