Skip to content

chore: github workflow #8

chore: github workflow

chore: github workflow #8

Workflow file for this run

name: Release
on:
push:
branches:
- release
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 18.12.0
- name: Install deps
run: pnpm install
- name: Run release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config user.name "ajiu9"
git config user.email "[email protected]"
pnpm run release
merge-to-main:

Check failure on line 38 in .github/workflows/release.yml

View workflow run for this annotation

GitHub Actions / Release

Invalid workflow file

The workflow is not valid. .github/workflows/release.yml (Line: 38, Col: 5): Unexpected value 'merge-to-main'
needs: release
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Merge release to main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config user.name "ajiu9"
git config user.email "[email protected]"
git checkout main
git merge release --no-ff -m "Merge release into main"
git push origin main