Skip to content

Commit

Permalink
Add pnpm as a dependency manager and update workflow***
Browse files Browse the repository at this point in the history
  • Loading branch information
Evan-2007 committed Mar 23, 2024
1 parent bbbb8cc commit 0e800da
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,24 @@ jobs:
with:
node-version: '16' # or the version you're using
registry-url: 'https://registry.npmjs.org/'
cache: 'pnpm'

- name: Install dependencies
- name: Install pnpm
run: npm install -g pnpm

- name: Change to project directory
run: cd bambujs

- name: Install dependencies with pnpm
run: pnpm install
working-directory: ./bambujs

- name: Build with tsup
run: pnpm tsup
run: pnpm exec tsup
working-directory: ./bambujs

- name: Publish to npm
run: pnpm publish
run: pnpm publish --access public
working-directory: ./bambujs
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 0e800da

Please sign in to comment.