From df15eb02014c3b7768840ae22fc32e4a8415a67c Mon Sep 17 00:00:00 2001 From: Victor Berchet Date: Tue, 7 Jan 2025 20:16:05 +0100 Subject: [PATCH] chore(unenv-preset): publish beta pre-release (#7683) --- .github/workflows/prereleases.yml | 6 ++++++ packages/unenv-preset/package.json | 6 ++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/prereleases.yml b/.github/workflows/prereleases.yml index 2a211a5d68a8..9af0452867f4 100644 --- a/.github/workflows/prereleases.yml +++ b/.github/workflows/prereleases.yml @@ -34,6 +34,7 @@ jobs: node .github/version-script.js miniflare node .github/version-script.js create-cloudflare node .github/version-script.js workers-shared + node .github/version-script.js unenv-preset - name: Build run: pnpm run build @@ -73,6 +74,11 @@ jobs: env: NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }} + - name: Publish unenv-preset@beta to NPM + run: pnpm --filter unenv-preset publish --tag beta + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }} + - name: Get Package Version run: echo "WRANGLER_VERSION=$(npm view wrangler@beta version)" >> $GITHUB_ENV working-directory: packages/wrangler diff --git a/packages/unenv-preset/package.json b/packages/unenv-preset/package.json index 538d198473f1..a0f3ba44dbcc 100644 --- a/packages/unenv-preset/package.json +++ b/packages/unenv-preset/package.json @@ -36,8 +36,7 @@ "main": "./dist/index.cjs", "types": "./dist/index.d.ts", "files": [ - "dist", - "runtime" + "dist" ], "scripts": { "build": "unbuild", @@ -58,6 +57,9 @@ "optional": true } }, + "publishConfig": { + "access": "public" + }, "workers-sdk": { "prerelease": true }