Skip to content

Commit 9e49cb6

Browse files
Configure .npmrc for private GitHub package registry
1 parent 98cadca commit 9e49cb6

File tree

4 files changed

+20
-0
lines changed

4 files changed

+20
-0
lines changed

.github/workflows/examples.yml

+4
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,10 @@ jobs:
6262
key: package-app-gem-cache-${{ hashFiles('react_on_rails.gemspec') }}-${{ hashFiles('Gemfile.development_dependencies') }}-${{ matrix.versions }}
6363
- id: get-sha
6464
run: echo "sha=\"$(git rev-parse HEAD)\"" >> "$GITHUB_OUTPUT"
65+
- name: Configure .npmrc for react-on-rails-rsc
66+
run: |
67+
echo "//npm.pkg.github.com/:_authToken=${{ secrets.REACT_ON_RAILS_RSC_PACKAGE_TOKEN }}" >> .npmrc
68+
echo "@abanoubghadban:registry=https://npm.pkg.github.com/" >> .npmrc
6569
- name: Install Node modules with Yarn for renderer package
6670
run: |
6771
yarn install --no-progress --no-emoji

.github/workflows/lint-js-and-ruby.yml

+4
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ jobs:
4242
with:
4343
path: vendor/bundle
4444
key: package-app-gem-cache-${{ hashFiles('react_on_rails.gemspec') }}-${{ hashFiles('Gemfile.development_dependencies') }}-oldest
45+
- name: Configure .npmrc for react-on-rails-rsc
46+
run: |
47+
echo "//npm.pkg.github.com/:_authToken=${{ secrets.REACT_ON_RAILS_RSC_PACKAGE_TOKEN }}" >> .npmrc
48+
echo "@abanoubghadban:registry=https://npm.pkg.github.com/" >> .npmrc
4549
- name: Install Node modules with Yarn for renderer package
4650
run: |
4751
yarn install --no-progress --no-emoji

.github/workflows/main.yml

+8
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ jobs:
4646
with:
4747
path: node_modules
4848
key: v5-package-node-modules-cache-${{ hashFiles('yarn.lock') }}
49+
- name: Configure .npmrc for react-on-rails-rsc
50+
run: |
51+
echo "//npm.pkg.github.com/:_authToken=${{ secrets.REACT_ON_RAILS_RSC_PACKAGE_TOKEN }}" >> .npmrc
52+
echo "@abanoubghadban:registry=https://npm.pkg.github.com/" >> .npmrc
4953
- name: Install Node modules with Yarn for renderer package
5054
run: |
5155
yarn install --no-progress --no-emoji
@@ -144,6 +148,10 @@ jobs:
144148
with:
145149
path: spec/dummy/public/webpack
146150
key: dummy-app-webpack-bundle-${{ steps.get-sha.outputs.sha }}-${{ matrix.versions }}
151+
- name: Configure .npmrc for react-on-rails-rsc
152+
run: |
153+
echo "//npm.pkg.github.com/:_authToken=${{ secrets.REACT_ON_RAILS_RSC_PACKAGE_TOKEN }}" >> .npmrc
154+
echo "@abanoubghadban:registry=https://npm.pkg.github.com/" >> .npmrc
147155
- name: Install Node modules with Yarn
148156
run: |
149157
yarn install --no-progress --no-emoji

.github/workflows/package-js-tests.yml

+4
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ jobs:
3636
- name: run conversion script
3737
if: matrix.versions == 'oldest'
3838
run: script/convert
39+
- name: Configure .npmrc for react-on-rails-rsc
40+
run: |
41+
echo "//npm.pkg.github.com/:_authToken=${{ secrets.REACT_ON_RAILS_RSC_PACKAGE_TOKEN }}" >> .npmrc
42+
echo "@abanoubghadban:registry=https://npm.pkg.github.com/" >> .npmrc
3943
- name: Install Node modules with Yarn for renderer package
4044
run: |
4145
yarn install --no-progress --no-emoji

0 commit comments

Comments
 (0)