refactor: remove rust code (#241) #1118
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: ci | |
| on: [push, pull_request] | |
| jobs: | |
| build-javascript: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| id-token: write | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Install rust | |
| uses: dsherret/rust-toolchain-file@v1 | |
| - name: Install Deno | |
| uses: denoland/setup-deno@v2 | |
| with: | |
| deno-version: canary | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: '24.x' | |
| registry-url: 'https://registry.npmjs.org' | |
| - name: Build | |
| run: deno task build && deno task node | |
| - name: Test | |
| run: deno task test | |
| - name: Get tag version | |
| if: startsWith(github.ref, 'refs/tags/') | |
| id: get_tag_version | |
| run: echo TAG_VERSION=${GITHUB_REF/refs\/tags\//} >> "$GITHUB_OUTPUT" | |
| - name: Publish deno.land/x | |
| uses: denoland/publish-folder@82ce065074e7174baf444332c4b7c40869a4909a | |
| if: startsWith(github.ref, 'refs/tags/') | |
| with: | |
| folder: js | |
| branch: deno_registry | |
| tag: deno/${{ steps.get_tag_version.outputs.TAG_VERSION }} | |
| token: ${{ secrets.DENOBOT_PAT }} | |
| git-user-name: denobot | |
| git-user-email: denobot@users.noreply.github.com | |
| - name: Build npm | |
| run: deno run -A ./build_npm.ts ${{ github.ref_name }} | |
| - name: Publish npm | |
| if: | | |
| github.repository == 'denoland/eszip' && | |
| startsWith(github.ref, 'refs/tags/') | |
| run: | | |
| cd npm/ && npm publish --provenance --access public |