Skip to content

Commit

Permalink
ci(workspace): fix pnpm version
Browse files Browse the repository at this point in the history
  • Loading branch information
subframe7536 committed May 11, 2024
1 parent 4253b85 commit 50d82a2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 561 deletions.
1 change: 0 additions & 1 deletion .github/workflows/example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ jobs:
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9
run_install: false

- name: Set node
Expand Down
11 changes: 8 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,25 +18,30 @@ jobs:

- name: Install pnpm
uses: pnpm/action-setup@v4
with:
run_install: false

- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 20.x
registry-url: 'https://registry.npmjs.org'

- name: Setup
run: npm i -g @antfu/ni

- name: Install dependencies
run: pnpm install
run: nci

- name: PNPM build
run: pnpm run build
run: nr build

- run: npx changelogithub
env:
GITHUB_TOKEN: ${{secrets.TOKEN}}

- name: Publish to NPM
run: pnpm run publish
run: nr publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
NPM_CONFIG_PROVENANCE: true
Loading

0 comments on commit 50d82a2

Please sign in to comment.