name: Release run-name: Release ${{ inputs.tag }} on: workflow_dispatch: inputs: tag: description: Tag to release required: true default: 0.1.0 concurrency: group: ${{ github.workflow }}-${{ github.ref }} jobs: release: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: cache: npm node-version-file: package.json - run: npm install - run: npm run build - run: git config user.name github-actions - run: git config user.email github-actions@github.com - run: git commit -am "Release ${{ inputs.tag }}" - run: git push - run: gh release create ${{ inputs.tag }} --generate-notes env: GH_TOKEN: ${{ github.token }}