change operating system version #1307
Workflow file for this run
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
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages | |
name: Automate_Tag | |
on: [push] | |
jobs: | |
test: | |
runs-on: ubuntu-22.04 | |
strategy: | |
matrix: | |
node-version: [20.x] | |
redis-version: [4, 5, 6] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Start Redis | |
uses: supercharge/[email protected] | |
with: | |
redis-version: ${{ matrix.redis-version }} | |
- uses: borales/[email protected] | |
with: | |
cmd: install --frozen-lockfile | |
- run: npm test | |
auto-tag-patch: | |
needs: test | |
runs-on: ubuntu-22.04 | |
if: | | |
startsWith(github.ref, 'refs/heads/master') && | |
!contains(github.event.head_commit.message, '[MAJOR]') && | |
!contains(github.event.head_commit.message, '[MINOR]') | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
registry-url: https://registry.npmjs.org/ | |
- run: | | |
git config --local user.email "$(git log --format='%ae' HEAD^!)" | |
git config --local user.name "$(git log --format='%an' HEAD^!)" | |
npm version patch | |
auto-tag-minor: | |
needs: test | |
runs-on: ubuntu-22.04 | |
if: | | |
startsWith(github.ref, 'refs/heads/master') && | |
!contains(github.event.head_commit.message, '[MAJOR]') && | |
contains(github.event.head_commit.message, '[MINOR]') | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
registry-url: https://registry.npmjs.org/ | |
- run: | | |
git config --local user.email "$(git log --format='%ae' HEAD^!)" | |
git config --local user.name "$(git log --format='%an' HEAD^!)" | |
npm version minor | |
auto-tag-major: | |
needs: test | |
runs-on: ubuntu-22.04 | |
if: | | |
startsWith(github.ref, 'refs/heads/master') && | |
contains(github.event.head_commit.message, '[MAJOR]') && | |
!contains(github.event.head_commit.message, '[MINOR]') | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
registry-url: https://registry.npmjs.org/ | |
- run: | | |
git config --local user.email "$(git log --format='%ae' HEAD^!)" | |
git config --local user.name "$(git log --format='%an' HEAD^!)" | |
npm version major |