Skip to content

ci(dep): bump actions/setup-node from 4.0.0 to 4.0.1 #546

ci(dep): bump actions/setup-node from 4.0.0 to 4.0.1

ci(dep): bump actions/setup-node from 4.0.0 to 4.0.1 #546

Workflow file for this run

name: Release
on:
push:
branches:
- master
jobs:
release-action:
runs-on: ubuntu-latest
name: Release release-it action
steps:
- name: Setup node.js
uses: actions/[email protected]
with:
node-version: 12
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
- name: Install dependencies
run: npm ci
- name: Bump version
if: "github.ref == 'refs/heads/master' && !contains(toJSON(github.event.commits.*.message), 'chore(release)')"
id: bump-version
uses: ./
env:
DEBUG: release-it:*
with:
github-token: ${{ secrets.AUTO_PAT }}
github-username: TRW-bot
git-user-name: TheRealWaldo-bot
git-user-email: [email protected]
create-branch: release
auto-resolve-command: npm run build && git add dist/**
rebase-onto: master
no-increment: false
json-opts: '{"github": {"release": false}}'
debug: true
- name: Create pull request
if: "github.ref == 'refs/heads/master' && !contains(toJSON(github.event.commits.*.message), 'chore(release)')"
uses: TheRealWaldo/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.AUTO_PAT }}
with:
draft: true
title: 'chore(release): v${{steps.bump-version.outputs.version}}'
body: ${{steps.bump-version.outputs.changelog}}
base: master
head: release
assignee: TheRealWaldo
- name: Release
if: "github.ref == 'refs/heads/master' && contains(toJSON(github.event.commits.*.message), 'chore(release)')"
uses: ./
env:
DEBUG: release-it:*
with:
no-increment: true
github-token: ${{ secrets.AUTO_PAT }}
debug: true
json-opts: >
{
"github": { "release": true },
"git": { "tag": true, "commit": false },
"plugins": {
"@release-it/bumper": {
"in": { "file": "VERSION", "type": "text/plain" }
},
"@release-it/conventional-changelog": { "ignoreRecommendedBump": true }
}
}