Skip to content

Commit

Permalink
Merge pull request #1059 from City-of-Helsinki/hds-1787-prerelease-sc…
Browse files Browse the repository at this point in the history
…ript

Hds 1787 prerelease script
  • Loading branch information
harriplappalainen authored Jul 6, 2023
2 parents 5cd8a61 + 181699d commit b38c842
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: prerelease

on:
workflow_dispatch:
inputs:
prerelease_stage:
description: 'alpha or beta'
required: true

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: release npm packages
run: yarn run release --dist-tag ${{ github.event.inputs.prerelease_stage }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit b38c842

Please sign in to comment.