Skip to content

Merge pull request #1452 from uswitch/meng-1145-brand-label #248

Merge pull request #1452 from uswitch/meng-1145-brand-label

Merge pull request #1452 from uswitch/meng-1145-brand-label #248

Workflow file for this run

name: Publish packages
on:
push:
branches:
- master
jobs:
publish:
runs-on: ubuntu-latest
env:
NPM_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v2
- name: Install Dependencies
run: |
npm ci
npx lerna bootstrap --no-ci
- name: Build
run: npm run build
# Setup .npmrc file to publish to GitHub Packages
- uses: actions/setup-node@v2
with:
node-version: '12.x'
registry-url: 'https://npm.pkg.github.com'
scope: '@uswitch'
- name: Lerna publish
run: npx lerna publish from-package --yes --registry="https://npm.pkg.github.com/"
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}