Skip to content

Commit

Permalink
update: github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
arihanv committed Jun 11, 2024
1 parent 6398e5d commit 72262ad
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,21 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v1
- uses: actions/setup-node@v3
with:
node-version: '20.x'
registry-url: https://registry.npmjs.org/

- name: 'Automated Version Bump'
id: version-bump
uses: 'phips28/gh-action-bump-version@master'
with:
tag-prefix: 'v'
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
- run: npm ci
- run: npm run build
- run: npm publish
- run: bun install
- run: bun run build
- run: bun run publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@
"cosmos-export": "cosmos-export",
"format": "prettier --write .",
"lint": "eslint . --ext .js,.jsx,.cjs,.mjs,.json,.ts,.tsx",
"link": "link @rubriclabs/ui"
"link": "link @rubriclabs/ui",
"publish": "npm publish"
},
"source": "src/index.ts",
"type": "module",
Expand Down
File renamed without changes.

0 comments on commit 72262ad

Please sign in to comment.