Publish packages #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: Publish packages | |
on: workflow_dispatch | |
permissions: | |
contents: write | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
token: ${{ secrets.GH_PAT }} | |
# need to fetch all history for lerna to calculate the changes | |
fetch-depth: 0 | |
- name: Configure git credentials | |
uses: OleksiyRudenko/gha-git-credentials@v2 | |
with: | |
token: ${{ secrets.GH_PAT }} | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
registry-url: "https://registry.npmjs.org/" | |
node-version-file: .nvmrc | |
cache: yarn | |
- name: Add auth token | |
run: | | |
echo " | |
npmAuthToken: ${{ secrets.NPM_TOKEN }}" >> .yarnrc.yml | |
- name: Check if able to publish changes | |
run: npm whoami # will throw and exit if npm is not ready to publish | |
- name: Install | |
shell: bash | |
run: yarn install --immutable | |
- name: Prepare ui components | |
shell: bash | |
run: yarn workspace @quoll/ui-components prepare |