cbioportal-frontend-package-update #299
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
# Publish modules under cBioPortal/cbioportal-frontend/packages directory to npm registry | |
name: cBioPortal Frontend Module Publish | |
on: | |
repository_dispatch: | |
types: [cbioportal-frontend-package-update] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
token: ${{ secrets.LERNA_PUBLISH_BOT_GITHUB_TOKEN }} | |
repository: cBioPortal/cbioportal-frontend | |
# lerna needs tags to be able to determine what's changed | |
- run: git fetch origin +refs/tags/*:refs/tags/* | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: '15.2.1' | |
registry-url: 'https://registry.npmjs.org' | |
- run: yarn policies set-version 1.22.5 | |
- run: yarn --frozen-lockfile | |
- run: yarn updatePackageVersion | |
- run: yarn buildModules | |
- run: yarn publishModules | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |