Publish to Github Packages #19
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
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 |