Publish Package #91
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
# Bump version and release specified package to NPM | |
name: 'Publish Package' | |
on: | |
workflow_dispatch: | |
inputs: | |
package: | |
description: Package | |
required: true | |
type: choice | |
options: | |
- components | |
- tokens | |
- linting | |
version_bump: | |
description: Version bump | |
required: true | |
type: choice | |
options: | |
- alpha | |
- beta | |
- patch | |
- minor | |
- major | |
jobs: | |
tokens-build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
token: ${{ secrets.VA_MOBILE_ROBOT_GITHUB_PAT }} | |
- name: Use Node.js 18.x | |
uses: actions/setup-node@v3 | |
with: | |
registry-url: https://registry.npmjs.org/ | |
node-version-file: .nvmrc | |
cache: yarn | |
cache-dependency-path: yarn.lock | |
- run: yarn install | |
- name: Build tokens | |
run: | | |
yarn tokens:build | |
- name: Commit latest figma tokens | |
working-directory: packages/tokens | |
run: | | |
git config --global user.name 'VA Automation Bot' | |
git config --global user.email '[email protected]' | |
git pull | |
git add -f figma/ | |
git commit -m 'Build latest figma tokens' | |
git push |