Skip to content

Commit 525895b

Browse files
authored
Refactor publish.yml for pnpm integration
Updated the publish workflow to include pnpm setup and install steps.
1 parent d6dd90e commit 525895b

1 file changed

Lines changed: 11 additions & 8 deletions

File tree

.github/workflows/publish.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,10 @@ jobs:
2424
with:
2525
file-url: https://unpkg.com/bungie-api-ts@latest/package.json
2626
static-checking: localIsNew
27-
28-
- uses: pnpm/action-setup@v4
29-
30-
- name: Upgrade NPM
27+
28+
- name: pnpm setup
3129
if: steps.check.outputs.changed == 'true'
32-
run: |
33-
npm install -g npm@latest
34-
npm --version
30+
uses: pnpm/action-setup@v4
3531

3632
- name: Setup Node
3733
if: steps.check.outputs.changed == 'true'
@@ -40,6 +36,13 @@ jobs:
4036
node-version-file: '.nvmrc'
4137
registry-url: https://registry.npmjs.org/
4238

39+
- name: Install
40+
if: steps.check.outputs.changed == 'true'
41+
run: pnpm install --frozen-lockfile --prefer-offline
42+
4343
- name: Publish the package to NPM
4444
if: steps.check.outputs.changed == 'true'
45-
run: cd lib && npm publish --provenance
45+
run: |
46+
cd lib
47+
npm install -g npm@latest
48+
npm publish --access public --provenance

0 commit comments

Comments
 (0)