v0.2.6 #10
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 | |
id-token: write | |
jobs: | |
release: | |
name: Release | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- run: rustup target add wasm32-unknown-unknown | |
- run: | | |
cargo build --release -p dprint_plugin_markup --target wasm32-unknown-unknown | |
cp target/wasm32-unknown-unknown/release/dprint_plugin_markup.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: cargo publish -p markup_fmt | |
env: | |
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} | |
- uses: actions/setup-node@v3 | |
with: | |
registry-url: "https://registry.npmjs.org" | |
- name: Setup pnpm | |
uses: pnpm/[email protected] | |
with: | |
version: 8.10.5 | |
run_install: true | |
- name: Publish npm package | |
run: | | |
cp target/wasm32-unknown-unknown/release/dprint_plugin_markup.wasm dprint_plugin/deployment/npm/plugin.wasm | |
pnpm -F dprint-plugin-markup publish --no-git-checks --provenance --access public | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |