Skip to content

Commit

Permalink
fix(ci): fix release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ThibaultBee committed Nov 5, 2024
1 parent 00fceab commit e09034d
Showing 1 changed file with 18 additions and 6 deletions.
24 changes: 18 additions & 6 deletions .github/workflows/release.yml
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

0 comments on commit e09034d

Please sign in to comment.