Promote #17
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: promote | |
on: | |
workflow_dispatch: | |
inputs: | |
core-version: | |
description: 'The PatternFly core version' | |
required: false | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
env: | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
CORE_VERSION: ${{ github.event.inputs.core-version }} | |
RELEASE_VERSION: ${{ github.event.inputs.version }} | |
GH_TOKEN: ${{ secrets.GH_TOKEN_REDALLEN }} | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
token: ${{ secrets.GH_TOKEN_REDALLEN }} # needs to be an admin token to get around branch protection | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '18' | |
- name: Install deps | |
run: yarn install --frozen-lockfile | |
- name: Build dist | |
run: yarn build && yarn build:umd | |
- name: Deploy to NPM and Github | |
run: .github/promote.sh |