aravagarwal/CodeCloakPII
0
1name: Publish2 3on:4 push:5 tags:6 - v*7 8env:9 CARGO_TERM_COLOR: always10 CARGO_INCREMENTAL: 011 12jobs:13 publish-crate:14 15 runs-on: ubuntu-latest16 17 steps:18 - name: Checkout repository19 uses: actions/checkout@v320 21 - name: Install Rust22 uses: actions-rs/toolchain@v123 with:24 toolchain: stable25 profile: minimal26 override: true27 28 - name: Verify crate29 run: cargo publish --dry-run30 31 - name: Publish crate32 run: cargo publish33 env:34 CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}35 36 publish-npm:37 38 runs-on: ubuntu-latest39 40 steps:41 - name: Checkout repository42 uses: actions/checkout@v343 44 - name: Install Node45 uses: actions/setup-node@v346 with:47 node-version: 1848 registry-url: "https://registry.npmjs.org"49 50 - name: Verify package51 run: npm publish --dry-run52 53 - name: Publish package54 env:55 NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}56 run: npm publish57 58 create-release:59 60 runs-on: ubuntu-latest61 62 permissions:63 contents: write64 65 steps:66 - name: Checkout repository67 uses: actions/checkout@v368 69 - name: Create GitHub release70 uses: ncipollo/release-action@v171 with:72 body: |73 Find tree-sitter-java ${{ github.ref_name }} on [crates.io](https://crates.io/crates/tree-sitter-java) or [NPM](https://www.npmjs.com/package/tree-sitter-java).74 token: ${{ secrets.GITHUB_TOKEN }}75 