Skip to content

Commit fd1f7c6

Browse files
authored
Merge pull request #52 from hypercerts-org/fix/publish_package
chore(npm): npmrc in release and PAT instead of GH token
2 parents 275a148 + 9ff6f7d commit fd1f7c6

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/release-beta.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- uses: actions/checkout@v4
1818
with:
1919
fetch-depth: 0
20-
token: ${{ secrets.GITHUB_TOKEN }}
20+
token: ${{ secrets.RELEASE_PAT }}
2121
- uses: pnpm/action-setup@v4
2222
- uses: actions/setup-node@v4
2323
with:

.github/workflows/release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ jobs:
2929
- run: pnpm test
3030

3131
- name: Create .npmrc
32-
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
32+
run: |
33+
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc
34+
echo "@hypercerts-org:registry=https://registry.npmjs.org/" >> .npmrc
3335
3436
- name: Create Release Pull Request or Publish
3537
id: changesets

0 commit comments

Comments
 (0)