From d2eb4751452d3b48ef458ee61cf1f49354208367 Mon Sep 17 00:00:00 2001 From: Fabian Engelniederhammer Date: Wed, 24 Apr 2024 17:10:49 +0200 Subject: [PATCH] build(components): setup node to create .npmrc when releasing "Please note that you need to set the registry-url to https://registry.npmjs.org/ in setup-node to properly configure your credentials." https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages#publishing-packages-to-the-npm-registry --- .github/workflows/release-components.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/release-components.yml b/.github/workflows/release-components.yml index d714327d..7daed486 100644 --- a/.github/workflows/release-components.yml +++ b/.github/workflows/release-components.yml @@ -24,6 +24,12 @@ jobs: - uses: actions/checkout@v4 if: ${{ steps.release.outputs.components--release_created }} + - uses: actions/setup-node@v4 + if: ${{ steps.release.outputs.components--release_created }} + with: + node-version: 'lts/*' + registry-url: 'https://registry.npmjs.org' + - uses: actions/cache@v4 if: ${{ steps.release.outputs.components--release_created }} with: