-
Notifications
You must be signed in to change notification settings - Fork 12
43 lines (39 loc) · 1.56 KB
/
publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Yarn publish
on:
release:
types: [published]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js 18.x
uses: actions/setup-node@v2
with:
node-version: 18.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 }}