Skip to content

Add release workflow #1

Add release workflow

Add release workflow #1

Workflow file for this run

name: Create Release
on:
push:
branches:
- main
jobs:
release:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'skip ci')"
steps:
- uses: actions/checkout@v4
- name: Prepare repository
run: git fetch --unshallow --tags
- name: Set up Node.js
uses: actions/setup-node@v1
with:
node-version: '12.x'
- name: Install Auto and Plugins
run: npm install -g @auto-it/git-tag
- name: Release with Auto
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npx auto shipit