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
+28-2Lines changed: 28 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -131,8 +131,35 @@ jobs:
131
131
token: ${{ secrets.NPM_TOKEN }}
132
132
```
133
133
134
+
You can also publish to third-party registries. For example, to publish to the [GitHub Package Registry][], set `token` to `secrets.GITHUB_TOKEN` and `registry` to `https://npm.pkg.github.com`:
135
+
136
+
```yaml
137
+
on:
138
+
push:
139
+
branches: main
140
+
141
+
jobs:
142
+
publish:
143
+
runs-on: ubuntu-latest
144
+
permissions:
145
+
contents: read
146
+
packages: write # allow GITHUB_TOKEN to publish packages
0 commit comments