Publish packages #1
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: | |
- 'prod' | |
workflow_run: | |
workflows: | |
- base | |
types: completed | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: '14' | |
- name: Authenticate with GitHub | |
run: | | |
echo "GH_TOKEN=${{ secrets.GH_TOKEN }}" >> $GITHUB_ENV | |
- name: Configure CI Git User | |
run: | | |
git config --global user.email "${{ secrets.GH_EMAIL }}" | |
git config --global user.name GitHubActions | |
- name: Version and publish | |
run: echo "This step is building yet, please wait!" | |
# npm config set //npm.pkg.github.com/_authToken "${{ secrets.GH_TOKEN }}" | |
# cd packages/ | |
# npx lerna version --conventional-commits --no-push | |
# npx lerna publish from-git --access private --dist-tag dev --registry https://npm.pkg.github.com |