npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

yors-ghac-burn-tauri-bucket

v0.3.0

Published

a github action to burn tauri bucket mono repo

Downloads

12

Readme

Demo

  • with this workdow:
name: download-tauri-app-from-run-id

on:
  push:
    branches:
      - main # let it able to dispatch when push on dev
    paths:
      - ".github/workflows/download-tauri-app-from-run-id.yml"
permissions: write-all

env:
  APP_NAME: yowa
  TAURI_VERSION: v1

jobs:
  build-bucket:
    runs-on: ubuntu-20.04
    steps:
      # - name: Download All Artifacts
      #   uses: actions/download-artifact@v4
      #   with:
      #     path: tauri-app # save to path
      #     pattern: tauri-app* # down load artifacts match pattern name
      #     merge-multiple: false #  extracted into individual named directories within the specified path
      #     run-id: 9744112537
      #     github-token: ${{ secrets.GITHUB_TOKEN }} # for different repo or workflow
      #     repository: ymc-github/yowa

      - name: mock tauri artifacts
        shell: bash
        run: |
          mkdir -p tauri-app/{msi,nsis}
          touch tauri-app/msi/wall_0.1.0_x64_en-US.msi.zip
          touch tauri-app/msi/wall_0.1.0_x64_en-US.msi.zip.sig
          echo "the content of a sig" > tauri-app/msi/wall_0.1.0_x64_en-US.msi.zip.sig


          touch tauri-app/nsis/wall_0.1.0_x64-setup.nsis.zip
          touch tauri-app/nsis/wall_0.1.0_x64-setup.nsis.zip.sig
          echo "the content of b sig" > tauri-app/nsis/wall_0.1.0_x64-setup.nsis.zip.sig

          touch tauri-app/msi/main_0.1.0_x64_en-US.msi.zip
          touch tauri-app/msi/main_0.1.0_x64_en-US.msi.zip.sig
          echo "the content of c sig" > tauri-app/msi/main_0.1.0_x64_en-US.msi.zip.sig

          touch tauri-app/nsis/main_0.1.0_x64-setup.nsis.zip
          touch tauri-app/nsis/main_0.1.0_x64-setup.nsis.zip.sig
          echo "the content of d sig" > tauri-app/nsis/main_0.1.0_x64-setup.nsis.zip.sig

      - name: list tauri app artifacts
        shell: bash
        run: |
          ls -R tauri-app

      - name: cook tauri bucket
        uses: ymc-github/[email protected]
        with:
          path: tauri-app
          bucket-loc: "bucket/{name}.json"
          pkg-org: yors
          browser-download-url-prefix: "https://github.com/YMC-GitHub/yowa/releases/download/v{version}"

      - name: list tauri bucket
        shell: bash
        run: |
          ls -R bucket
          cat bucket/yors.wall.json
          cat bucket/yors.main.json

      - name: push tauri apps to some repo's release page (todo)
        shell: bash
        run: |
          echo "todo"

      - name: commit and push tauri bucket to some repo (todo)
        shell: bash
        run: |
          echo "todo"

  • here will output bucket files: bucket/yors.main.json,bucket/yors.wall.json

  • the bucket like (yors.wall.json):

{
  "version": "0.1.0",
  "notes": "",
  "pub_date": "2024-07-01T13:10:15.076Z",
  "platforms": {
    "win64": {
      "signature": "the content of a sig\n",
      "url": "https://github.com/YMC-GitHub/yowa/releases/download/v0.1.0/wall_0.1.0_x64_en-US.msi.zip"
    },
    "linux": {
      "signature": "",
      "url": ""
    },
    "darwin": {
      "signature": "",
      "url": ""
    },
    "darwin-aarch64": {
      "signature": "",
      "url": ""
    },
    "darwin-x86_64": {
      "signature": "",
      "url": ""
    },
    "linux-x86_64": {
      "signature": "",
      "url": ""
    },
    "windows-x86_64": {
      "signature": "the content of a sig\n",
      "url": "https://github.com/YMC-GitHub/yowa/releases/download/v0.1.0/wall_0.1.0_x64_en-US.msi.zip"
    }
  }
}

cli

npm i -g yors-ghac-burn-tauri-bucket
# burn-bucket --help
# burn-bucket --version

burn-bucket --path test/tauri-app --bucket-loc "test/bucket/{name}.json" --browser-download-url-prefix "https://github.com/ymc-github/yowa/releases/download/v{version}"

Author

yemiancheng [email protected]

License

MIT

Todo

  • set this repo to mono repo with pnpm workspace or npm/yarn workspace