Skip to content

Commit eac76f8

Browse files
authored
Add step to publish to GitHub package registry (#725)
1 parent 7539e69 commit eac76f8

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/release-please.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,19 @@ jobs:
151151
env:
152152
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
153153

154+
- name: github package registry publish
155+
run: |
156+
cat << EOF > .npmrc
157+
//npm.pkg.github.com/:_authToken=${GITHUB_TOKEN}
158+
@fastly:registry=https://npm.pkg.github.com
159+
registry=https://registry.npmjs.org/
160+
always-auth=true
161+
EOF
162+
npm publish
163+
rm .npmrc
164+
env:
165+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
166+
154167
- run: yarn
155168
working-directory: ./documentation
156169

0 commit comments

Comments
 (0)