bump package version #6
Workflow file for this run
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: Packages Deploy | |
on: | |
push: | |
env: | |
SECRETS: ${{ toJSON(secrets) }} | |
jobs: | |
build: | |
name: Build Packages | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: Setup NodeJS | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 16 | |
cache: 'yarn' | |
- name: Setup Yarn | |
run: | | |
npm install -g yarn | |
echo "Yarn version: $(yarn -v)" | |
echo "//registry.npmjs.org/:_authToken=${{SECRETS.NPM_TOKEN}}" >> ~/.npmrc | |
- name: Install Dependencies | |
run: yarn install --frozen-lockfile | |
- name: Build | |
run: yarn build:packages | |
publish: | |
name: Publish Production Packages | |
runs-on: ubuntu-latest | |
needs: build | |
if: github.ref == 'refs/heads/main' | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: Setup NodeJS | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 18 | |
- name: Setup Yarn | |
run: | | |
npm install -g yarn | |
echo "Yarn version: $(yarn -v)" | |
echo "//registry.npmjs.org/:_authToken=${{SECRETS.NPM_TOKEN}}" >> ~/.npmrc | |
- name: Install Dependencies | |
run: yarn install --frozen-lockfile | |
- name: Build | |
run: yarn build:packages | |
- name: Publish | |
run: lerna exec "npm publish --tag=latest --no-git-checks" |