diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index f6676d3..f700452 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -1,23 +1,17 @@ -# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node -# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs - name: Node.js CI on: - push: - branches: [ "master" ] - pull_request: - branches: [ "master" ] + workflow_dispatch: + inputs: + tag_name: + description: "Tag name" + required: true + type: string jobs: build: - runs-on: ubuntu-latest - strategy: - matrix: - node-version: [16.x] - steps: - uses: actions/checkout@v3 - name: setup npm @@ -37,8 +31,8 @@ env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - tag_name: ${{ github.ref }} - release_name: Release ${{ github.ref }} + tag_name: ${{ inputs.tag_name }} + release_name: Release ${{ inputs.tag_name }} draft: false prerelease: false - name: Upload Release Asset