-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
00fceab
commit e09034d
Showing
1 changed file
with
18 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,29 @@ | ||
name: Release React Native Live Stream package | ||
name: Publish package to npmjs | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
registry-url: 'https://registry.npmjs.org' | ||
- run: yarn | ||
- name: Publish to npm | ||
run: yarn publish | ||
node-version: 18 | ||
registry-url: "https://registry.npmjs.org" | ||
cache: 'yarn' | ||
|
||
- name: Prepare NPM credentials | ||
run: | | ||
echo "npmAuthToken: ${NODE_AUTH_TOKEN}" >> .yarnrc.yml | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
|
||
- run: yarn | ||
|
||
- name: Publish to npm | ||
run: yarn npm publish --access public |