Release: @latest production build #6
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: @latest production build' | |
on: | |
workflow_dispatch: | |
inputs: | |
releaseType: | |
description: 'Release type' | |
required: true | |
type: choice | |
default: 'patch' | |
options: | |
- 'patch' # bug fixes | |
- 'minor' # new features, backwards compatible | |
- 'major' # breaking changes | |
# prevent concurrent releases | |
concurrency: | |
group: npm-release | |
cancel-in-progress: true | |
jobs: | |
# integration-tests: | |
# if: ${{ github.event.inputs.runTests == 'true' }} | |
# uses: ./.github/workflows/PR.yml | |
# secrets: inherit | |
version-and-release: | |
name: Release to NPM | |
# needs: integration-tests | |
runs-on: ubuntu-latest | |
outputs: | |
tagName: ${{ steps.npm-release.outputs.release_tag }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup | |
uses: ./.github/actions/setup | |
- name: Version and publish to npm | |
id: npm-release | |
uses: ./.github/actions/npm-release | |
with: | |
git_email: [email protected] | |
git_username: ${{ github.actor }} | |
releaseType: ${{ github.event.inputs.releaseType }} | |
npm_token: ${{ secrets.NPM_TOKEN }} | |
- run: echo "${{ steps.npm-release.outputs.release_tag }} was published" | |
- name: Generate TypeDoc documentation | |
uses: ./.github/actions/build-docs | |
- name: Deploy documentation to gh-pages | |
uses: s0/git-publish-subdir-action@develop | |
env: | |
REPO: self | |
BRANCH: gh-pages | |
FOLDER: docs | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN}} |