Update translation strings #296
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
# This is a basic workflow to build and publish stripes-components storybook | |
name: Build and Publish Storybook | |
on: | |
push: | |
branches: [ "master" ] | |
jobs: | |
build-storybook: | |
env: | |
FOLIO_NPM_REGISTRY: 'https://repository.folio.org/repository/npm-folioci/' | |
NODEJS_VERSION: '18' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ env.NODEJS_VERSION }} | |
check-latest: true | |
always-auth: true | |
- name: Set yarn config | |
run: yarn config set @folio:registry $FOLIO_NPM_REGISTRY | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: checkout storybook branch | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: sync storybook branch | |
run: | | |
git checkout storybook | |
git reset --hard origin/master | |
- name: Run yarn install | |
run: yarn install --ignore-scripts | |
- name: Build storybook | |
run: npm run storybook-build | |
# commit the build to history, clean the previous build, promote the new build (rename .out to docs)" | |
- name: Promote new storybook build to published build | |
run: | | |
git config user.name github-actions | |
git config user.email [email protected] | |
git add -f .out | |
git commit -am "added built storybook" | |
git pull origin storybook --rebase -Xours | |
rm -rf docs | |
git commit -am "clean hosted storybook" | |
git mv .out docs | |
git commit -am "update storybook" | |
- name: Publish storybook | |
run: git push origin storybook |