Skip to content

Merge pull request #39 from RyoJerryYu/chore-use-yarn-for-release-wor… #15

Merge pull request #39 from RyoJerryYu/chore-use-yarn-for-release-wor…

Merge pull request #39 from RyoJerryYu/chore-use-yarn-for-release-wor… #15

Workflow file for this run

name: Release Obsidian plugin
on:
push:
tags:
- "*"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: "20.x"
cache: yarn

Check failure on line 19 in .github/workflows/release.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/release.yaml

Invalid workflow file

You have an error in your yaml syntax on line 19
- name: Build plugin
run: |
yarn install
yarn run build
- name: Create release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
tag="${GITHUB_REF#refs/tags/}"
gh release create "$tag" \
--title="$tag" \
--draft \
main.js manifest.json styles.css