From 72fda2e4629852326eaafc42cf4c8e1a609e3cfc Mon Sep 17 00:00:00 2001 From: Lineng Cao Date: Sun, 7 Aug 2022 09:53:46 -0700 Subject: [PATCH] chore: Attempt fix actions invalid syntax error --- .github/workflows/publish-beta.yml | 3 ++- .github/workflows/publish-stable.yml | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-beta.yml b/.github/workflows/publish-beta.yml index 7318d6e..521bb98 100644 --- a/.github/workflows/publish-beta.yml +++ b/.github/workflows/publish-beta.yml @@ -33,7 +33,8 @@ jobs: yarn install --frozen-lockfile yarn test - name: Assign a new beta version from current package version - run: npm version prerelease --preid=beta -m "chore(ci): v%s" + run: | + npm version prerelease --preid=beta -m "chore(ci): v%s" - name: Publish beta to NPMJS run: npm publish --tag beta diff --git a/.github/workflows/publish-stable.yml b/.github/workflows/publish-stable.yml index f0cc4b2..fa891c8 100644 --- a/.github/workflows/publish-stable.yml +++ b/.github/workflows/publish-stable.yml @@ -54,7 +54,8 @@ jobs: - name: Add stable version change commit message # add commit manually due to no-git-tag-version setting in npm version - run: git commit -a -m "chore(ci): ${{ github.event.release.tag_name }}" + run: | + git commit -a -m "chore(ci): ${{ github.event.release.tag_name }}" - name: Push stable version change to HEAD:master uses: ad-m/github-push-action@master