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
This commit is contained in:
Jacob Bolda
2020-04-02 21:54:08 -05:00
committed by GitHub
parent ad91e3022b
commit d202007656
2 changed files with 10 additions and 7 deletions

View File

@@ -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 }}

View File

@@ -51,12 +51,15 @@ jobs:
working-directory: ${{ matrix.package.path }}
run: |
echo "# Yarn Audit Results" | tee -a ${{runner.workspace }}/notes.md
echo "\n<details>" >> ${{runner.workspace }}/notes.md
echo "<summary>click to view</summary>\n" >> ${{runner.workspace }}/notes.md
echo "" >> ${{runner.workspace }}/notes.md
echo "<details>" >> ${{runner.workspace }}/notes.md
echo "<summary>click to view</summary>" >> ${{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 "</details>\n" >> ${{runner.workspace }}/notes.md
echo "</details>" >> ${{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 }}