Merge pull request #84 from ololabs/codeowners #27
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
# Based on https://github.com/changesets/action#with-publishing | |
name: Publish | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
release: | |
name: Publish | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v2 | |
with: | |
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits | |
fetch-depth: 0 | |
- name: Setup Node.js 12.x | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 12.x | |
- name: Install Dependencies | |
run: yarn | |
- name: Build Packages | |
run: yarn build | |
- name: Setup publish token | |
run: cp publish.npmrc .npmrc | |
- name: Run Lerna publish | |
run: yarn lerna publish from-package --yes | |
env: | |
CI: true | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |