Set test script to run on push to release-3 so the workflow runs and … #1
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: prerelease | |
on: | |
workflow_dispatch: | |
inputs: | |
prerelease_stage: | |
description: 'alpha or beta' | |
required: true | |
push: | |
branches: | |
- release-3.0.0 | |
jobs: | |
build-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Read .nvmrc | |
run: echo "NODE_VERSION=$(cat .nvmrc)" >> $GITHUB_OUTPUT | |
id: nvmrc | |
- name: setup node ${{ steps.nvmrc.outputs.NODE_VERSION }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '${{ steps.nvmrc.outputs.NODE_VERSION }}' | |
registry-url: 'https://registry.npmjs.org' | |
- name: install dependencies | |
run: yarn | |
- name: build design tokens package | |
run: yarn build | |
working-directory: ./packages/design-tokens | |
- name: build core package | |
run: yarn build | |
working-directory: ./packages/core | |
- name: build react package | |
run: yarn build | |
working-directory: ./packages/react | |
- name: build documentation site | |
run: yarn build | |
working-directory: ./site | |
- name: release npm packages | |
run: yarn run testdrive --stage=github.event.inputs.prerelease_stage | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |