Skip to content
Open
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: autofix.ci # Must be named this for autofix.ci to work
name: 🔄 Format & Build

on:
workflow_dispatch:
Expand All @@ -8,7 +8,7 @@ on:
- main

permissions:
contents: read
contents: write

jobs:
format:
Expand All @@ -22,13 +22,21 @@ jobs:
with:
node-version: 20.x

- name: 🔧 Configure Git
run: |
git config user.name 'github-actions[bot]'
git config user.email 'github-actions[bot]@users.noreply.github.com'

- name: 📦 Install Dependencies
run: npm install

- name: 🧹 Format
- name: 🔄 Format and build
run: |
npm run format
npm run build

- name: 💾 Commit
uses: autofix-ci/action@551dded8c6cc8a1054039c8bc0b8b48c51dfc6ef
- name: 💾 Commit changes
run: |
git add .
git commit -m "chore: format and build"
git push
Comment thread
okineadev marked this conversation as resolved.
Outdated
36 changes: 22 additions & 14 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
name: 🚀 Release new action version

on:
release:
types: [released]

workflow_dispatch:
inputs:
TAG_NAME:
description: Tag name that the major tag will point to
required: true
on: [workflow_dispatch]

permissions:
contents: write
Expand All @@ -18,10 +10,26 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: 📥 Checkout
uses: actions/checkout@v4
with:
# Required for fetching tags and generating release notes
fetch-depth: 0

- uses: actions/publish-action@v0.3.0
env:
TAG_NAME: ${{ github.event.inputs.TAG_NAME || github.event.release.tag_name }}
- name: 🛠️ Setup Node
uses: actions/setup-node@v4
with:
source-tag: ${{ env.TAG_NAME }}
node-version: 20.x

- name: 🔧 Configure Git
run: |
git config user.name 'github-actions[bot]'
git config user.email 'github-actions[bot]@users.noreply.github.com'

- name: 📦 Install Dependencies
run: npm install

- name: 📜 Generate changelog and release new version
run: |
npx changelogen --release --push
npx changelogen github release --token ${{ secrets.GITHUB_TOKEN }}
Loading