From fc0aff30cfb4ec35ec7a1c92de83ef0a53ea52b4 Mon Sep 17 00:00:00 2001 From: Vladimir Antropov Date: Thu, 10 Oct 2024 17:19:55 +0200 Subject: [PATCH] chore: add npmrc config and enable publish to public --- .github/workflows/build.yaml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index b92a573..a875372 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -25,7 +25,6 @@ jobs: app-name: Blast PL package app-name-slug: 'blast' notify-telegram: true - registry-url: https://registry.npmjs.org node-version: '20.x' is-electron-application: 'false' @@ -36,13 +35,24 @@ jobs: test: false test-script-name: 'test' + publish-to-public: true aws-login-enable: true gcp-login-enable: true + npmrc-config: | + { + "registries": { + "https://registry.npmjs.org/": { + "scopes": ["platforma-open"], + "tokenVar": "NPMJS_TOKEN" + } + } + } secrets: env: | { - "PL_REGISTRY_PLATFORMA_OPEN_UPLOAD_URL": ${{ toJSON(secrets.PL_REGISTRY_PLOPEN_UPLOAD_URL) }} + "PL_REGISTRY_PLATFORMA_OPEN_UPLOAD_URL": ${{ toJSON(secrets.PL_REGISTRY_PLOPEN_UPLOAD_URL) }}, + "NPMJS_TOKEN": ${{ toJSON(secrets.NPMJS_TOKEN) }} } AWS_ASSUME_ROLE: ${{ secrets.AWS_CI_IAM_MONOREPO_SIMPLE_ROLE }}