chore(pretty_yaml): v0.4.0 #4
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
push: | |
tags: | |
- "v*.*.*" | |
permissions: | |
contents: write | |
jobs: | |
release: | |
name: Release | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 2 | |
- run: rustup target add wasm32-unknown-unknown | |
- run: | | |
cargo build --release -p dprint_plugin_yaml --target wasm32-unknown-unknown | |
cp target/wasm32-unknown-unknown/release/dprint_plugin_yaml.wasm dprint_plugin/deployment/plugin.wasm | |
- name: Publish dprint plugin | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: | | |
dprint_plugin/deployment/plugin.wasm | |
dprint_plugin/deployment/schema.json | |
- name: Publish crates | |
run: | | |
if ! git show --exit-code -G^version yaml_parser/Cargo.toml; then | |
cargo publish -p yaml_parser | |
fi | |
cargo publish -p pretty_yaml | |
env: | |
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} |