From a833ef400da03505945f2491b037b1c061aae0e2 Mon Sep 17 00:00:00 2001 From: Hiroki Osame Date: Mon, 29 Apr 2024 06:11:23 +0900 Subject: [PATCH] ci: fetch tags --- .github/workflows/release.yml | 12 +++++++++--- README.md | 10 +++------- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 95c27ff2e..57a150ccb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -20,10 +20,12 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 + with: + token: ${{ secrets.GH_TOKEN }} - - name: Setup Node.js - uses: actions/setup-node@v3 + - name: Use Node.js + uses: actions/setup-node@v4 with: node-version-file: .nvmrc @@ -39,6 +41,10 @@ jobs: - name: Prerelease to GitHub if: github.repository_owner == 'pvtnbr' run: | + git remote add public https://github.com/$(echo $GITHUB_REPOSITORY | sed "s/^pvtnbr/privatenumber/") + git fetch public master 'refs/tags/*:refs/tags/*' + git push --force --tags origin refs/remotes/public/master:refs/heads/master + jq ' .publishConfig.registry = "https://npm.pkg.github.com" | .name = ("@" + env.GITHUB_REPOSITORY_OWNER + "/" + .name) diff --git a/README.md b/README.md index 6ce7252ef..3c33c5b3e 100644 --- a/README.md +++ b/README.md @@ -13,14 +13,10 @@ TypeScript Execute (tsx): The easiest way to run TypeScript in Node.js

- - - - - Premium sponsor banner - - + +

+

Already a sponsor? Join the discussion in the Development repo!

> [!TIP] > **Build your TypeScript projects?**