Skip to content

v48.3.0

v48.3.0 #234

Workflow file for this run

name: Yarn publish
on:
release:
types: [published]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js 20.x
uses: actions/setup-node@v2
with:
node-version: 20.x
cache: 'yarn'
- uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: "us-gov-west-1"
- name: Get bot token from Parameter Store
uses: marvinpinto/[email protected]
with:
ssm_parameter: /devops/VA_VSP_BOT_NPM_TOKEN
env_variable_name: VA_VSP_BOT_NPM_TOKEN
- run: yarn install
- name: Install dependencies in react-components
run: yarn install
working-directory: packages/react-components
- name: Install dependencies in css-library
run: yarn install
working-directory: packages/css-library
- run: yarn workspace @department-of-veterans-affairs/react-components run build
- run: yarn workspace @department-of-veterans-affairs/web-components run build
- run: yarn workspace @department-of-veterans-affairs/web-components run build-bindings
- run: yarn workspace @department-of-veterans-affairs/component-library run build
- run: yarn workspace @department-of-veterans-affairs/css-library run build
- run: yarn workspaces foreach --all --verbose --no-private npm publish --access public --tolerate-republish
env:
YARN_NPM_AUTH_TOKEN: ${{ env.VA_VSP_BOT_NPM_TOKEN }}