docs(devcontainers-backend): add clarifying text to README (#87) #22
Workflow file for this run
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 | |
# This workflow will draft a release for a plugin when tagged. The tag format | |
# is <name>/v<version> without the backstage-plugin- prefix, e.g. coder/v0.0.0 | |
on: | |
push: | |
tags: | |
- '*/v*' | |
permissions: | |
contents: write # For creating releases. | |
concurrency: ${{ github.workflow }}-${{ github.ref }} | |
jobs: | |
split-tag: | |
runs-on: ubuntu-latest | |
outputs: | |
plugin: ${{ steps.split.outputs.plugin }} | |
version: ${{ steps.split.outputs.version }} | |
steps: | |
- env: | |
TAG: ${{ github.ref_name }} | |
id: split | |
run: | | |
parts=(${TAG//\/v/ }) | |
echo "plugin=${parts[0]}" >> $GITHUB_OUTPUT | |
echo "version=${parts[1]}" >> $GITHUB_OUTPUT | |
plugin: | |
needs: split-tag | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: plugins/backstage-plugin-${{ needs.split-tag.outputs.plugin }} | |
name: ${{ needs.split-tag.outputs.plugin }} v${{ needs.split-tag.outputs.version }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version-file: .node-version | |
cache: yarn | |
- run: yarn install --frozen-lockfile | |
- run: yarn lint | |
- run: yarn test | |
# Must run tsc first to generate the .d.ts files. | |
- run: yarn tsc && yarn build | |
# Version it with the version in the tag and upload it to a draft release. | |
- run: yarn version --new-version ${{ needs.split-tag.outputs.version }} | |
- run: yarn pack | |
- uses: softprops/action-gh-release@v2 | |
with: | |
draft: true | |
files: plugins/backstage-plugin-${{ needs.split-tag.outputs.plugin }}/*.tgz |