Skip to content

Commit 8ec0f54

Browse files
committed
Move the npmrc into the github action
1 parent f3cc127 commit 8ec0f54

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

.github/workflows/release.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,17 @@ jobs:
2727
- name: Install deps
2828
run: pnpm i
2929

30+
- name: Create .npmrc for GitHub Packages
31+
run: |
32+
cat <<EOF > ~/.npmrc
33+
@nhsdigital:registry=https://npm.pkg.github.com
34+
//npm.pkg.github.com/:_authToken=${GITHUB_TOKEN}
35+
always-auth=true
36+
registry=https://registry.npmjs.org/
37+
EOF
38+
env:
39+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40+
3041
- name: Create Release Pull Request or Publish to npm
3142
uses: changesets/action@master
3243
with:

.npmrc

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1 @@
11
strict-peer-dependencies=false
2-
3-
@nhsdigital:registry=https://npm.pkg.github.com
4-
//npm.pkg.github.com/:_authToken=${GITHUB_TOKEN}
5-
always-auth=true
6-
7-
registry=https://registry.npmjs.org/

0 commit comments

Comments
 (0)