Merge pull request #264 from Pinelab-studio/feat/primary-collection-a… #44
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: Publish packages | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
Publish: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Setup Node | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '18' | |
- name: Set NPM token | |
run: npm set //registry.npmjs.org/:_authToken ${{secrets.NPM_PUBLISH_TOKEN}} | |
- name: Install dependencies | |
run: yarn | |
- name: Build | |
run: yarn build | |
- name: Stash changes that build might have caused by build | |
run: git stash | |
- name: Publish | |
run: yarn lerna publish from-package --yes |