This file contains hidden or 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: Tag Version | |
on: | |
push: | |
branches: | |
- main | |
- master | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
name: Tag New Version | |
if: "!contains(github.event.head_commit.message, '[release]')" | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
with: | |
token: ${{ secrets.GH_TOKEN }} | |
- name: Set Node.js 19.x | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 19.x | |
# node dependency cache | |
# this is not required but speeds up the process | |
- uses: actions/cache@v3 | |
with: | |
path: ./node_modules | |
key: node-${{ hashFiles('**/composer.lock') }} | |
restore-keys: | | |
node | |
- name: Install JS deps | |
uses: borales/actions-yarn@v4 | |
with: | |
cmd: install | |
- name: Tag Version | |
run: ./node_modules/semantic-release/bin/semantic-release.js --no-ci | |
env: | |
GH_TOKEN: ${{ secrets.GH_TOKEN }} |