chore(main): release 1.1.9 (#67) #63
This file contains hidden or 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: Test | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| permissions: {} # No GITHUB_TOKEN permissions, as we don't use it. | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| env: | |
| SCCACHE_GHA_ENABLED: "true" | |
| RUSTC_WRAPPER: "sccache" | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| persist-credentials: false | |
| - name: Setup rust | |
| uses: dtolnay/rust-toolchain@9a1d20035bdbcbc899baabe1e402e85bc33639bc # 1.90 | |
| with: | |
| components: rustfmt, clippy | |
| - name: Setup sccache | |
| uses: mozilla-actions/sccache-action@7d986dd989559c6ecdb630a3fd2557667be217ad # v0.0.9 | |
| - name: Run fmt | |
| run: cargo fmt -- --check | |
| - name: Build | |
| run: cargo build --verbose | |
| - name: Run tests | |
| run: cargo test --verbose --workspace --all-targets --no-fail-fast | |
| - name: Run clippy | |
| run: cargo clippy --all-features --workspace -- -Dwarnings | |
| npm-publish: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| persist-credentials: false | |
| - name: Setup rust | |
| uses: dtolnay/rust-toolchain@9a1d20035bdbcbc899baabe1e402e85bc33639bc # 1.90 | |
| with: | |
| components: rustfmt, clippy | |
| - name: Setup sccache | |
| uses: mozilla-actions/sccache-action@7d986dd989559c6ecdb630a3fd2557667be217ad # v0.0.9 | |
| - name: Run wasm-pack | |
| run: cargo install wasm-pack && wasm-pack build --release --target web --scope mdn | |
| - name: Setup Node | |
| uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0 | |
| with: | |
| registry-url: "https://registry.npmjs.org/" | |
| node-version-file: ".nvmrc" | |
| package-manager-cache: false | |
| - name: Bump version (prerelease) | |
| working-directory: ./pkg | |
| run: npm version prerelease | |
| - name: Publish (dry-run) | |
| working-directory: ./pkg | |
| run: npm publish --dry-run --access public --provenance --tag test |