Skip to content

Commit

Permalink
Added pnpm publish settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Harry-Ross committed Jan 2, 2024
1 parent 39dcd76 commit 3432c29
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,24 @@ jobs:
- uses: pnpm/action-setup@v2
with:
version: 8.13.0

- uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
registry-url: "https://registry.npmjs.org"
cache: "pnpm"
- name: Install dependencies 📦️

- name: 📦️ Install dependencies
run: pnpm install
- name: Build 🏗️

- name: 🏗️ Build
run: |
pnpm build
- name: Publish to NPM 🚀️
run: pnpm publish --no-git-checks
- name: 📋 Copy package.json to dist
run: cp package.json dist/

- name: 🚀️ Publish to NPM
run: pnpm publish --no-git-checks --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,5 +73,8 @@
"last 1 safari version"
]
},
"publishConfig": {
"directory": "dist"
},
"packageManager": "[email protected]+sha256.fbcf256db6d06bc189e31df34b3ed61220f3ba9f78a2ca8fe7be0fce4670dbd3"
}

0 comments on commit 3432c29

Please sign in to comment.