Skip to content

Commit

Permalink
Fixed publish to use pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
Tony Hales committed Dec 20, 2023
1 parent b94f8d5 commit 29a6599
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
18 changes: 13 additions & 5 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,25 @@ jobs:
- name: Download Code
uses: actions/checkout@v2
- name: Setup Environment
uses: actions/setup-node@v1
uses: actions/setup-node@v1
with:
node-version: 19.x
- name: Setup PNPM
uses: pnpm/action-setup@v2
with:
version: latest
- name: Configure NPM
run: npm config set //npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}
- name: Install Dependencies
run: npm ci
run: pnpm ci
- name: Build
run: npm run build --if-present
run: pnpm run build --if-present
- name: Perform Version Bump
uses: "phips28/gh-action-bump-version@master"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Pack
run: npm pack
run: pnpm pack
- name: Upload
uses: actions/upload-artifact@v2
with:
Expand All @@ -48,9 +52,13 @@ jobs:
node-version: 19.x
registry-url: https://npm.pkg.github.com/
scope: "@anupheaus"
- name: Setup PNPM
uses: pnpm/action-setup@v2
with:
version: latest
- name: Configure NPM
run: echo "registry=https://npm.pkg.github.com/@anupheaus" >> .npmrc
- name: Publish
run: npm publish $(ls *.tgz)
run: pnpm publish $(ls *.tgz)
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
],
"typings": "dist",
"dependencies": {
"@anupheaus/common": "link:../common",
"@anupheaus/common": "^0.0.23",
"luxon": "^3.2.1",
"selfsigned-ca": "^2.0.1"
},
Expand Down

0 comments on commit 29a6599

Please sign in to comment.