From 31b9c8be69d7f8862002e96b38bae4942c0a0e4b Mon Sep 17 00:00:00 2001 From: Pavel Tcholakov Date: Fri, 22 Sep 2023 14:44:24 +0200 Subject: [PATCH] Delete .npmrc, create it on the fly in CI For local development we assume that npm is already properly configured. Removing the bundled dot file avoids overriding personal configurations. --- .github/workflows/test.yml | 4 ++++ typescript/.npmrc | 2 -- 2 files changed, 4 insertions(+), 2 deletions(-) delete mode 100644 typescript/.npmrc diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7617383f..bba4f994 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -22,6 +22,10 @@ jobs: uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} + - name: Create .npmrc + run: | + echo '@restatedev:registry=https://npm.pkg.github.com/' > ~/.npmrc + echo '//npm.pkg.github.com/:_authToken=${GH_PACKAGE_READ_ACCESS_TOKEN}' >> ~/.npmrc - run: npm ci --prefix typescript env: GH_PACKAGE_READ_ACCESS_TOKEN: ${{ secrets.GH_PACKAGE_READ_ACCESS_TOKEN }} diff --git a/typescript/.npmrc b/typescript/.npmrc deleted file mode 100644 index 8958abd6..00000000 --- a/typescript/.npmrc +++ /dev/null @@ -1,2 +0,0 @@ -@restatedev:registry=https://npm.pkg.github.com/ -//npm.pkg.github.com/:_authToken=${GH_PACKAGE_READ_ACCESS_TOKEN}