diff options
author | 2023-10-02 13:56:14 -0700 | |
---|---|---|
committer | 2023-10-02 13:56:14 -0700 | |
commit | 237a5ada4750ff255781d91e004e5e9570f031a2 (patch) | |
tree | 4858a114027d240306f6733fab881cda289a2c2b | |
parent | 0a2d490bf8cb0dbfe3ccfc936d71b33fb9c59899 (diff) | |
download | bun-237a5ada4750ff255781d91e004e5e9570f031a2.tar.gz bun-237a5ada4750ff255781d91e004e5e9570f031a2.tar.zst bun-237a5ada4750ff255781d91e004e5e9570f031a2.zip |
Fix npm tag for canary bun-types
-rw-r--r-- | .github/workflows/bun-release.yml | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/.github/workflows/bun-release.yml b/.github/workflows/bun-release.yml index bc47dcc4d..85f1eaa28 100644 --- a/.github/workflows/bun-release.yml +++ b/.github/workflows/bun-release.yml @@ -113,11 +113,20 @@ jobs: - name: Setup Bun uses: oven-sh/setup-bun@v1 with: - bun-version: latest + bun-version: canary - name: Install Dependencies run: bun install + - name: Setup Tag + if: ${{ env.BUN_VERSION == 'canary' }} + run: | + VERSION=$(bun --version) + TAG="${VERSION}-canary.$(date +'%Y%m%dT%H%M%S')" + echo "Setup tag: ${TAG}" + echo "TAG=${TAG}" >> ${GITHUB_ENV} - name: Build run: bun run build + env: + BUN_VERSION: ${{ env.TAG || env.BUN_VERSION }} - name: Release uses: JS-DevTools/npm-publish@v1 with: |