You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+15
Original file line number
Diff line number
Diff line change
@@ -122,6 +122,21 @@ For example, you can add a step before running the Changesets GitHub Action:
122
122
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
123
123
```
124
124
125
+
If you want to publish package to other registry than NPM, you can do that by providing custom registry domain. GitHub Actions will create a `.npmrc` accordingly to specified registry.
126
+
For example, you can specify changeset to publish a package to GitHub Pcakages
127
+
128
+
```yml
129
+
- name: Create Release Pull Request or Publish to GitHub Packages
130
+
id: changesets
131
+
uses: changesets/action@v1
132
+
with:
133
+
publish: yarn release
134
+
registry: npm.pkg.github.com
135
+
env:
136
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
137
+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
138
+
```
139
+
125
140
#### Custom Publishing
126
141
127
142
If you want to hook into when publishing should occur but have your own publishing functionality you can utilize the `hasChangesets` output.
0 commit comments