Skip to content

Commit df0c2e6

Browse files
Delete .npmrc, create it on the fly in CI (#29)
* 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. * Apply suggestions from code review --------- Co-authored-by: Jack Kleeman <jackkleeman@gmail.com>
1 parent 28dd4b7 commit df0c2e6

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/test.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ jobs:
2222
uses: actions/setup-node@v3
2323
with:
2424
node-version: ${{ matrix.node-version }}
25+
- name: Create .npmrc
26+
run: |
27+
echo '@restatedev:registry=https://npm.pkg.github.com/' > typescript/.npmrc
28+
echo '//npm.pkg.github.com/:_authToken=${GH_PACKAGE_READ_ACCESS_TOKEN}' >> typescript/.npmrc
2529
- run: npm ci --prefix typescript
2630
env:
2731
GH_PACKAGE_READ_ACCESS_TOKEN: ${{ secrets.GH_PACKAGE_READ_ACCESS_TOKEN }}

typescript/.npmrc

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)