Skip to content

Publish to Github Packages #22

Publish to Github Packages

Publish to Github Packages #22

name: Update native sdk and iris dependencies only
on:
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
# Setup .npmrc file to publish to GitHub Packages
- uses: actions/setup-node@v3
with:
node-version: "16.x"
registry-url: "https://npm.pkg.github.com"
# Defaults to the user or organization that owns the workflow file
scope: "@agoraio-extensions"
- name: publish terra-core
if: always()
continue-on-error: true
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
npm ci
npm exec tsc
npm publish
working-directory: terra-core
- name: publish terra
if: always()
continue-on-error: true
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
npm ci
npm exec tsc
npm publish
working-directory: terra
- name: publish cxx-parser
if: always()
continue-on-error: true
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
npm ci
npm exec tsc
npm publish
working-directory: cxx-parser