mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-04-01 10:01:07 +02:00
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:
8
.github/workflows/release-cargo.yml
vendored
8
.github/workflows/release-cargo.yml
vendored
@@ -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 }}
|
||||
|
||||
9
.github/workflows/release-npm.yml
vendored
9
.github/workflows/release-npm.yml
vendored
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user