From d202007656023f40b15cb2d40916db712968dfce Mon Sep 17 00:00:00 2001 From: Jacob Bolda Date: Thu, 2 Apr 2020 21:54:08 -0500 Subject: [PATCH] chore(workflow): publish perf and prettying (#548) * install webkit after we confirmed we will publish this should speed up the publish sequence as we now only run one at a time * new lines don't work, use empty echo --- .github/workflows/release-cargo.yml | 8 ++++---- .github/workflows/release-npm.yml | 9 ++++++--- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release-cargo.yml b/.github/workflows/release-cargo.yml index 4bdb2052a..ca43b9287 100644 --- a/.github/workflows/release-cargo.yml +++ b/.github/workflows/release-cargo.yml @@ -41,15 +41,15 @@ jobs: with: ref: master toolchain: stable - - name: install webkit2gtk - run: | - sudo apt-get update - sudo apt-get install -y webkit2gtk-4.0 - name: get version working-directory: ${{ matrix.package.path }} run: echo ::set-env name=PACKAGE_VERSION::$(sed -nE 's/^\s*version = "(.*?)"/\1/p' Cargo.toml) - name: check published version run: echo ::set-env name=PUBLISHED_VERSION::$(cargo search ${{ matrix.package.registryName }} --limit 1 | sed -nE 's/^[^"]*"//; s/".*//1p' -) + - name: install webkit2gtk + run: | + sudo apt-get update + sudo apt-get install -y webkit2gtk-4.0 - name: cargo login if: env.PACKAGE_VERSION != env.PUBLISHED_VERSION run: cargo login ${{ secrets.crate_token }} diff --git a/.github/workflows/release-npm.yml b/.github/workflows/release-npm.yml index 09f47894b..56366fb69 100644 --- a/.github/workflows/release-npm.yml +++ b/.github/workflows/release-npm.yml @@ -51,12 +51,15 @@ jobs: working-directory: ${{ matrix.package.path }} run: | echo "# Yarn Audit Results" | tee -a ${{runner.workspace }}/notes.md - echo "\n
" >> ${{runner.workspace }}/notes.md - echo "click to view\n" >> ${{runner.workspace }}/notes.md + echo "" >> ${{runner.workspace }}/notes.md + echo "
" >> ${{runner.workspace }}/notes.md + echo "click to view" >> ${{runner.workspace }}/notes.md + echo "" >> ${{runner.workspace }}/notes.md echo "\`\`\`" >> ${{runner.workspace }}/notes.md yarn audit 2>&1 | tee -a ${{runner.workspace }}/notes.md echo "\`\`\`" >> ${{runner.workspace }}/notes.md - echo "
\n" >> ${{runner.workspace }}/notes.md + echo "
" >> ${{runner.workspace }}/notes.md + echo "" >> ${{runner.workspace }}/notes.md - name: Publish ${{ matrix.package.name }} if: env.PACKAGE_VERSION != env.PUBLISHED_VERSION working-directory: ${{ matrix.package.path }}