From 7497b3f3ce3ce1eb83a6f3c9ab8253814304cb75 Mon Sep 17 00:00:00 2001 From: Michael Thomas Date: Fri, 15 Nov 2024 12:09:49 -0500 Subject: [PATCH] ci: update release configuration --- .github/workflows/CI.yml | 4 ++-- .gitignore | 3 ++- package.json | 3 ++- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 232823a..4a4194f 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -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 diff --git a/.gitignore b/.gitignore index 06793d8..aa3e7a2 100644 --- a/.gitignore +++ b/.gitignore @@ -7,4 +7,5 @@ # nodejs node_modules/ -dist/ \ No newline at end of file +dist/ +npm/ diff --git a/package.json b/package.json index 2d5e0a1..9d4facc 100644 --- a/package.json +++ b/package.json @@ -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",