Skip to content

Merge pull request #18 from drtrt-org/add-usage-info #12

Merge pull request #18 from drtrt-org/add-usage-info

Merge pull request #18 from drtrt-org/add-usage-info #12

Workflow file for this run

name: Release
on:
push:
branches:
- main
- beta
jobs:
release:
permissions:
id-token: write
contents: write
issues: write
pull-requests: write
runs-on: ubuntu-latest
if: '!contains(github.event.head_commit.message, "Merge branch ''main'' into beta")'

Check failure on line 18 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: 18, Col: 13): Unexpected symbol: '"Merge'. Located at position 45 within expression: !contains(github.event.head_commit.message, "Merge branch 'main' into beta")
steps:
- name: Checkout
uses: actions/checkout@v3
with:
persist-credentials: false
- name: Release
uses: actions/setup-node@v3
with:
node-version: "20.x"
cache: "npm"
- run: npm ci
- run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_GITHUB }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Merge main into beta
run: |
git fetch origin
git checkout beta
git merge --no-ff origin/main -m "chore: Merge branch 'main' into beta"
git push origin beta