show code by default in storybook #60
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 | |
on: | |
push: | |
tag: | |
- '*' | |
jobs: | |
release: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Run script file | |
id: build-release | |
run: | | |
corepack enable | |
yarn set version berry | |
yarn | |
yarn release | |
echo "::set-output name=filepath::$(ls *.tar.gz | head -1)" | |
echo "::set-output name=filename::$(basename `ls *.tar.gz | head -1`)" | |
shell: bash | |
- name: Create Release | |
id: create-release | |
uses: actions/create-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: ${{ github.ref }} | |
release_name: v${{ github.ref }} | |
body: "For a detailed overview of changes, please check out our [Changelog](https://netzkollektiv.com/docs/easycredit-ratenkauf-components/?path=%2Fdocs%2Fgetting-started-changelog--page)" | |
draft: true | |
prerelease: false | |
- name: Upload Release Asset | |
id: upload-release-asset | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create-release.outputs.upload_url }} | |
asset_path: ${{ steps.build-release.outputs.filepath }} | |
asset_name: ${{ steps.build-release.outputs.filename }} | |
asset_content_type: application/zip |