Skip to content

Commit c781c88

Browse files
committed
make ci use the pnpm run release
1 parent 8904165 commit c781c88

File tree

2 files changed

+3
-32
lines changed

2 files changed

+3
-32
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -78,36 +78,7 @@ jobs:
7878
registry-url: 'https://registry.npmjs.org'
7979
cache: 'pnpm'
8080

81-
- name: Install dependencies
82-
run: pnpm install
83-
84-
- name: Build
85-
run: pnpm build
86-
87-
- name: Test package publishing (verify workspace:* resolution)
88-
working-directory: packages
89-
run: |
90-
# Test that pnpm resolves workspace:* dependencies correctly when packing
91-
for package in */; do
92-
echo "Testing package: $package"
93-
cd "$package"
94-
# Create a pack tarball - pnpm will resolve workspace:* during packing
95-
pnpm pack --quiet
96-
# Extract and check that workspace:* was resolved to actual versions
97-
tarball=$(ls *.tgz | head -1)
98-
tar -xzOf "$tarball" package/package.json | grep -q '"workspace:\*"' && (echo "✗ ERROR: workspace:* not resolved in $package" && rm -f "$tarball" && exit 1) || echo "✓ workspace:* resolved correctly in $package"
99-
rm -f "$tarball"
100-
cd ..
101-
done
102-
103-
- name: Publish to npm
104-
run: |
105-
if [[ ${GITHUB_REF} == *alpha* ]]; then
106-
pnpm publish -r --access public --tag alpha --no-git-checks
107-
elif [[ ${GITHUB_REF} == *beta* ]]; then
108-
pnpm publish -r --access public --tag beta --no-git-checks
109-
else
110-
pnpm publish -r --access public --tag latest --no-git-checks
111-
fi
81+
- name: Release
82+
run: pnpm run release
11283
env:
11384
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"test-watch": "turbo test-watch",
1313
"format": "prettier --write \"**/*.{ts,tsx,md}\"",
1414
"test:publish": "bash scripts/test-publish.sh",
15-
"release": "pnpm install && pnpm build:packages && pnpm publish -r --access public --no-git-checks"
15+
"release": "pnpm install && pnpm build:packages && pnpm test:publish && pnpm publish -r --access public --no-git-checks"
1616
},
1717
"devDependencies": {
1818
"@humeai/eslint-config": "workspace:*",

0 commit comments

Comments
 (0)