From dc58a7892f2fca8d84fb8169b9c0db4a67019e9f Mon Sep 17 00:00:00 2001 From: Tobias Lins Date: Fri, 13 Jan 2023 14:20:32 +0100 Subject: [PATCH 1/3] allow to make beta releases with CI (#32) --- .github/workflows/release.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 416d205..b121e8e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,7 +1,7 @@ name: Publish on: release: - types: [created] + types: [published] jobs: release: runs-on: ubuntu-latest @@ -26,8 +26,10 @@ jobs: run: pnpm -r type-check - name: prettier run: pnpm prettier -c . + - name: set-version + run: npm version ${{ github.event.release.tag_name }} --no-git-tag-version - name: build run: pnpm -r build - - run: pnpm --filter @vercel/analytics publish --no-git-checks + - run: pnpm --filter @vercel/analytics publish ${{ if eq(github.event.release.prerelease, true) }}--tag beta{{ else }} {{ end }} --no-git-checks env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN_ELEVATED }} From 83483caa0471c954d70265a8ab27ed7021fe22c1 Mon Sep 17 00:00:00 2001 From: Tobias Lins Date: Fri, 13 Jan 2023 14:36:14 +0100 Subject: [PATCH 2/3] Fix publish CI (#33) * allow to make beta releases with CI * Fix invalid syntax --- .github/workflows/release.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b121e8e..f2b8847 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -30,6 +30,11 @@ jobs: run: npm version ${{ github.event.release.tag_name }} --no-git-tag-version - name: build run: pnpm -r build - - run: pnpm --filter @vercel/analytics publish ${{ if eq(github.event.release.prerelease, true) }}--tag beta{{ else }} {{ end }} --no-git-checks + - run: pnpm --filter @vercel/analytics publish --tag beta --no-git-checks + if: github.event.release.prerelease == true + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN_ELEVATED }} + - run: pnpm --filter @vercel/analytics publish --no-git-checks + if: github.event.release.prerelease == false env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN_ELEVATED }} From 1549f54e3c39c76af7e63bd338ab4faa668008c8 Mon Sep 17 00:00:00 2001 From: Tobias Lins Date: Fri, 13 Jan 2023 14:53:55 +0100 Subject: [PATCH 3/3] patch version for new latest (#34) --- .github/workflows/release.yml | 2 -- packages/web/package.json | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f2b8847..df7cab8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -26,8 +26,6 @@ jobs: run: pnpm -r type-check - name: prettier run: pnpm prettier -c . - - name: set-version - run: npm version ${{ github.event.release.tag_name }} --no-git-tag-version - name: build run: pnpm -r build - run: pnpm --filter @vercel/analytics publish --tag beta --no-git-checks diff --git a/packages/web/package.json b/packages/web/package.json index a6c04f8..235cd34 100644 --- a/packages/web/package.json +++ b/packages/web/package.json @@ -1,6 +1,6 @@ { "name": "@vercel/analytics", - "version": "0.1.7", + "version": "0.1.8", "keywords": [ "analytics", "vercel"