Skip to content

Commit

Permalink
chore: fix release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
FRSgit committed Apr 17, 2024
1 parent e81c9b9 commit 78b5612
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Lint
name: CI
on:
pull_request:
branches:
Expand All @@ -8,7 +8,7 @@ on:
- main

jobs:
build-and-release:
release:
name: Release
runs-on: ubuntu-latest
steps:
Expand All @@ -33,11 +33,9 @@ jobs:
npm whoami
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: build
run: pnpm build
- name: release package
if: ${{ success() && github.ref == 'refs/heads/main' && github.event_name == 'push' }}
run: pnpm release --dry-run
run: NODE_DEBUG=release-it:* pnpm release --dry-run --npm.skipChecks
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion packages/release-it/.release-it.cjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const { monorepoIndependent } = require("./index.cjs");

module.exports = monorepoIndependent({
name: "release-it",
name: "release-it-config",
buildCmd: "", // no build needed
});

0 comments on commit 78b5612

Please sign in to comment.