Skip to content

Commit

Permalink
ci: fix release workflow (#1241)
Browse files Browse the repository at this point in the history
  • Loading branch information
ocavue authored Oct 25, 2024
1 parent 4b72d61 commit f4af79a
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 10 deletions.
1 change: 1 addition & 0 deletions .github/workflows/release-continuous.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ jobs:
uses: actions/checkout@v4

- run: corepack enable

- uses: actions/setup-node@v4
with:
node-version: lts/*
Expand Down
15 changes: 9 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,23 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set node
uses: actions/setup-node@v4
- run: corepack enable

- uses: actions/setup-node@v4
with:
node-version: lts/*
cache: pnpm

- name: Install dependencies
run: pnpm install

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

- name: Install Dependencies
run: pnpm i
- name: Build
run: pnpm build

- name: Publish to NPM
run: pnpm publish --access public --no-git-checks
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@
"tsup-node": "dist/cli-node.js"
},
"scripts": {
"dev": "npm run build-fast -- --watch",
"dev": "pnpm run build-fast -- --watch",
"build": "tsup src/cli-*.ts src/index.ts src/rollup.ts --clean --splitting",
"prepublishOnly": "npm run build",
"test": "npm run build && npm run test-only",
"prepublishOnly": "pnpm run build",
"test": "pnpm run build && pnpm run test-only",
"format": "prettier --write .",
"test-only": "vitest run",
"build-fast": "npm run build -- --no-dts",
"build-fast": "pnpm run build -- --no-dts",
"release": "bumpp"
},
"peerDependencies": {
Expand Down

0 comments on commit f4af79a

Please sign in to comment.