Skip to content

Commit

Permalink
feat(ci): Use bun on the publish step
Browse files Browse the repository at this point in the history
  • Loading branch information
Adil committed Sep 21, 2024
1 parent 56ea2fd commit 656d272
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Publish to npm
name: Tests + Publish

on:
release:
Expand All @@ -17,14 +17,12 @@ jobs:
publish:
runs-on: ubuntu-latest
needs: test
container:
image: oven/bun:latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: "20"
registry-url: "https://registry.npmjs.org"
- run: npm install
- run: npm run build
- run: npm publish --access public
- run: bun install
- run: bun build
- run: bunx --bun npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
</h1>

<p align="center">
<img src="https://github.com/perseidesjs/medusa-plugin-rate-limit/actions/workflows/npm-publish.yml/badge.svg" alt="Tests">
<img src="https://img.shields.io/npm/v/@perseidesjs/medusa-plugin-rate-limit" alt="npm version">
<img src="https://github.com/perseidesjs/medusa-plugin-rate-limit/actions/workflows/npm-publish.yml/badge.svg" alt="Tests">
<img src="https://img.shields.io/github/license/perseidesjs/medusa-plugin-rate-limit" alt="GitHub license">
</p>

Expand Down

0 comments on commit 656d272

Please sign in to comment.