Skip to content
This repository was archived by the owner on Mar 28, 2022. It is now read-only.

Commit f909dd3

Browse files
committed
chore: add github token for installing from github repo
1 parent 34aa2bb commit f909dd3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/publish-to-github.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: publish-to-github
22
on:
3-
release:
4-
types: [created]
3+
push:
4+
branches: [master]
55
jobs:
66
publish:
77
runs-on: ubuntu-latest
@@ -14,6 +14,8 @@ jobs:
1414
# Defaults to the user or organization that owns the workflow file
1515
scope: '@mocks-server'
1616
- run: npm ci
17+
env:
18+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1719
- run: npm publish
1820
env:
1921
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)