fix(sbb-overlay): add background animation (#2945) #1153
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: Release Please | |
on: | |
push: | |
branches: | |
- main | |
# Documentation: | |
# https://github.com/googleapis/release-please | |
# https://github.com/googleapis/release-please-action | |
# https://github.com/googleapis/release-please/blob/main/docs/customizing.md | |
permissions: | |
contents: write | |
packages: write | |
pull-requests: write | |
jobs: | |
release-please: | |
runs-on: ubuntu-latest | |
env: | |
IMAGE_REPO_STORYBOOK: ghcr.io/${{ github.repository }}/storybook | |
steps: | |
- uses: googleapis/release-please-action@v4 | |
id: release | |
with: | |
release-type: node | |
config-file: release-please-config.json | |
manifest-file: .release-please-manifest.json | |
- name: Release Info | |
run: echo "$RELEASE_OUTPUT" | |
env: | |
RELEASE_OUTPUT: ${{ toJSON(steps.release.outputs) }} | |
- name: 'Release: Determine version' | |
id: version | |
run: echo "version=$([[ "$VERSION" != "" ]] && echo "$VERSION" || echo "rev-$GITHUB_SHA")" >> $GITHUB_OUTPUT | |
env: | |
VERSION: ${{ steps.release.outputs.version }} | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version-file: .nvmrc | |
cache: yarn | |
registry-url: 'https://registry.npmjs.org' | |
scope: sbb-esta | |
- run: yarn install --frozen-lockfile --non-interactive | |
- name: Run build | |
run: STORYBOOK_COMPONENTS_VERSION="${{ steps.version.outputs.version }}" yarn build | |
- name: Remove files with forbidden extensions | |
run: node ./scripts/clean-storybook-files.cjs | |
- name: 'Release: Determine npm tag' | |
if: ${{ steps.release.outputs.release_created }} | |
id: npm_tag | |
run: echo "npm_tag=$([[ "${{ steps.version.outputs.version }}" == *"-"* ]] && echo "next" || echo "latest")" >> $GITHUB_OUTPUT | |
- name: 'Release: Publish @sbb-esta/lyne-elements' | |
if: ${{ steps.release.outputs.release_created }} | |
run: yarn publish dist/elements --tag ${{ steps.npm_tag.outputs.npm_tag }} | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
- name: 'Release: Publish @sbb-esta/lyne-elements-experimental' | |
if: ${{ steps.release.outputs.release_created }} | |
run: yarn publish dist/elements-experimental --tag ${{ steps.npm_tag.outputs.npm_tag }} | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
- name: 'Release: Publish @sbb-esta/lyne-react' | |
if: ${{ steps.release.outputs.release_created }} | |
run: yarn publish dist/react --tag ${{ steps.npm_tag.outputs.npm_tag }} | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
- name: 'Release: Publish @sbb-esta/lyne-react-experimental' | |
if: ${{ steps.release.outputs.release_created }} | |
run: yarn publish dist/react-experimental --tag ${{ steps.npm_tag.outputs.npm_tag }} | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
- name: 'Container: Login to GitHub Container Repository' | |
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin | |
- name: 'Container: Build and publish release image' | |
if: ${{ steps.release.outputs.release_created }} | |
run: | | |
docker build --tag $IMAGE_REPO_STORYBOOK:$VERSION --tag $IMAGE_REPO_STORYBOOK:latest . | |
docker push $IMAGE_REPO_STORYBOOK:$VERSION | |
docker push $IMAGE_REPO_STORYBOOK:latest | |
env: | |
DOCKER_BUILDKIT: 1 | |
VERSION: ${{ steps.release.outputs.version }} | |
- name: 'Container: Build and publish dev image' | |
run: | | |
docker build --tag $IMAGE_REPO_STORYBOOK:dev . | |
docker push $IMAGE_REPO_STORYBOOK:dev | |
env: | |
DOCKER_BUILDKIT: 1 |