diff --git a/.github/workflows/tag.yml b/.github/workflows/tag.yml index 84fa786..f157fd0 100644 --- a/.github/workflows/tag.yml +++ b/.github/workflows/tag.yml @@ -1,16 +1,25 @@ name: tag on: - push: - branches: - - master + push: + branches: + - master jobs: - tagVersion: - runs-on: ubuntu-latest + tagVersion: + runs-on: ubuntu-lates + if: github.event_name == 'push' && contains(github.event.head_commit.message, 'Merge branch') - steps: - - name: Tag the release with the version - run: node ci --function tagRelease - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + steps: + - name: Checkout repository + uses: actions/checkout@v + + - name: Use Node.js 20.x + uses: actions/setup-node@v2 + with: + node-version: 20.x + + - name: Tag the release with the version + run: node ci --function tagRelease + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file