Skip to content

Commit

Permalink
upgrade workflows and retry publish v11.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
10019630 committed Oct 14, 2024
1 parent 2d27b7c commit ee63e12
Show file tree
Hide file tree
Showing 4 changed files with 5,229 additions and 4,307 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,19 @@ jobs:
- uses: actions/checkout@v2

- name: Setup Node.js
uses: actions/setup-node@v1
uses: actions/setup-node@v2
with:
node-version: '18'
cache: 'pnpm'
registry-url: 'https://registry.npmjs.org'

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

- name: Build
run: npm run build
- name: Install dependencies
run: pnpm i --frozen-lockfile

- name: Publish to npm
run: npm publish
run: pnpm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_PUBLISH_TOKEN}}
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
uses: actions/checkout@master

- name: Install pnpm
run: npm install -g pnpm@8.0.0
run: npm install -g pnpm@latest

- name: Install and test & coverage
run: |
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"test": "vitest run --coverage",
"test:dev": "rm -rf coverage && vitest --ui --coverage",
"build": "rm -rf dist && rollup -c --configPlugin @rollup/plugin-typescript",
"prepublishOnly": "rm -rf dist coverage && npm test && npm run build"
"prepublishOnly": "rm -rf dist coverage && pnpm test && pnpm run build"
},
"publishConfig": {
"registry": "https://registry.npmjs.org/"
Expand Down
Loading

0 comments on commit ee63e12

Please sign in to comment.