Skip to content

Commit

Permalink
ci: update release configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelhthomas committed Nov 15, 2024
1 parent 1c089d4 commit 7497b3f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,11 +133,11 @@ jobs:
- name: Publish
run: |
npm config set provenance true
if git log -1 --pretty=%B | grep "^v\?[0-9]\+\.[0-9]\+\.[0-9]\+$";
if git log -1 --pretty=%B | grep "release.*[0-9]\+\.[0-9]\+\.[0-9]\+";
then
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
pnpm -r publish --access public
elif git log -1 --pretty=%B | grep "^v\?[0-9]\+\.[0-9]\+\.[0-9]\+";
elif git log -1 --pretty=%B | grep "release.*next";
then
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
pnpm -r publish --tag next --access public
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@

# nodejs
node_modules/
dist/
dist/
npm/
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"format": "biome format --write",
"check": "biome check",
"createNpmDirs": "napi create-npm-dirs --package-json-path ./packages/critters/package.json",
"artifacts": "napi artifacts --package-json-path ./packages/critters/package.json"
"artifacts": "napi artifacts --package-json-path ./packages/critters/package.json",
"prepublishOnly": "napi prepublish -t npm --package-json-path ./packages/critters/package.json --no-gh-release"
},
"keywords": [
"css",
Expand Down

0 comments on commit 7497b3f

Please sign in to comment.