This repository was archived by the owner on Jul 18, 2024. It is now read-only.
⬆️ Bump tailwindcss from 3.4.1 to 3.4.3 #53
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
name: Release | |
on: | |
pull_request: | |
types: [opened, reopened, labeled] | |
jobs: | |
Patch: | |
runs-on: ubuntu-latest | |
if: ${{ github.event.pull_request.user.login == 'dependabot[bot]' || contains(github.event.pull_request.labels[*].name, 'patch') }} | |
steps: | |
- name: Checkout Base Branch | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.event.pull_request.base.ref }} | |
- name: Version Get | |
run: | | |
NPM_VERSION=$(node -e "console.log(require('./package.json').version)") | |
printf "NPM_VERSION=%s" "$NPM_VERSION" >> $GITHUB_ENV | |
- name: Checkout PR Branch | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.event.pull_request.head.ref }} | |
- name: Version Get | |
run: | | |
NPM_NEW_VERSION=$(node -e "console.log(require('./package.json').version)") | |
printf "NPM_NEW_VERSION=%s" "$NPM_NEW_VERSION" >> $GITHUB_ENV | |
- name: Update Version | |
if: ${{ env.NPM_VERSION != env.NPM_NEW_VERSION }} | |
run: npm version patch | |
- name: Push | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: git push -u origin ${{ github.event.pull_request.head.ref }} | |
Minor: | |
runs-on: ubuntu-latest | |
if: ${{ github.event.pull_request.user.login == 'dependabot[bot]' || contains(github.event.pull_request.labels[*].name, 'minor') }} | |
steps: | |
- name: Checkout Base Branch | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.event.pull_request.base.ref }} | |
- name: Version Get | |
run: | | |
NPM_VERSION=$(node -e "console.log(require('./package.json').version)") | |
printf "NPM_VERSION=%s" "$NPM_VERSION" >> $GITHUB_ENV | |
- name: Checkout PR Branch | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.event.pull_request.head.ref }} | |
- name: Version Get | |
run: | | |
NPM_NEW_VERSION=$(node -e "console.log(require('./package.json').version)") | |
printf "NPM_NEW_VERSION=%s" "$NPM_NEW_VERSION" >> $GITHUB_ENV | |
- name: Update Version | |
if: ${{ env.NPM_VERSION != env.NPM_NEW_VERSION }} | |
run: npm version minor | |
- name: Push | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: git push -u origin ${{ github.event.pull_request.head.ref }} | |
Major: | |
runs-on: ubuntu-latest | |
if: ${{ github.event.pull_request.user.login == 'dependabot[bot]' || contains(github.event.pull_request.labels[*].name, 'major') }} | |
steps: | |
- name: Checkout Base Branch | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.event.pull_request.base.ref }} | |
- name: Version Get | |
run: | | |
NPM_VERSION=$(node -e "console.log(require('./package.json').version)") | |
printf "NPM_VERSION=%s" "$NPM_VERSION" >> $GITHUB_ENV | |
- name: Checkout PR Branch | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.event.pull_request.head.ref }} | |
- name: Version Get | |
run: | | |
NPM_NEW_VERSION=$(node -e "console.log(require('./package.json').version)") | |
printf "NPM_NEW_VERSION=%s" "$NPM_NEW_VERSION" >> $GITHUB_ENV | |
- name: Update Version | |
if: ${{ env.NPM_VERSION != env.NPM_NEW_VERSION }} | |
run: npm version major | |
- name: Push | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: git push -u origin ${{ github.event.pull_request.head.ref }} |