From c257766b8530db5fa373680365e0fd1acff1fa2e Mon Sep 17 00:00:00 2001 From: Hiroki Osame Date: Mon, 29 Apr 2024 05:48:36 +0900 Subject: [PATCH] ci: rc releases --- .github/workflows/release.yml | 31 ++++++++++++++++++++++--- README.md | 43 +++-------------------------------- 2 files changed, 31 insertions(+), 43 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5324226..4ff09a9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -2,17 +2,27 @@ name: Release on: push: - branches: [master] + branches: [master, develop] + +permissions: + contents: write jobs: release: name: Release + if: ( + github.repository_owner == 'pvtnbr' && github.ref_name =='develop' + ) || ( + github.repository_owner == 'privatenumber' && github.ref_name =='master' + ) runs-on: ubuntu-latest timeout-minutes: 10 steps: - name: Checkout uses: actions/checkout@v4 + with: + token: ${{ secrets.GH_TOKEN }} - name: Use Node.js uses: actions/setup-node@v4 @@ -25,8 +35,23 @@ jobs: version: 9 run_install: true - - name: Build - run: pnpm build + - 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) + | .repository = env.GITHUB_REPOSITORY + | .release.branches = [ + "master", + { name: "develop", prerelease: "rc", channel: "latest" } + ] + ' package.json > _package.json + mv _package.json package.json - name: Release env: diff --git a/README.md b/README.md index 7593b29..1072214 100644 --- a/README.md +++ b/README.md @@ -6,9 +6,6 @@ Speed up your Webpack build with [esbuild](https://github.com/evanw/esbuild)! [_esbuild-loader_](https://github.com/privatenumber/esbuild-loader) lets you harness the speed of esbuild in your Webpack build by offering faster alternatives for transpilation (eg. `babel-loader`/`ts-loader`) and minification (eg. Terser)! -Curious how much faster your build will be? See [what users are saying](https://github.com/privatenumber/esbuild-loader/discussions/138). - - > [!TIP] > **Are you using TypeScript with Node.js?** > @@ -21,14 +18,10 @@ Curious how much faster your build will be? See [what users are saying](https://

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

+

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

## 🚀 Install @@ -357,18 +350,6 @@ If you'd like to see working Webpack builds that use esbuild-loader for basic JS [→ esbuild-loader examples](https://github.com/privatenumber/esbuild-loader-examples) -
- -

- - - - - Premium sponsor banner - - -

- ## ⚙️ Options ### Loader @@ -564,24 +545,6 @@ Localize/i18nalize your Webpack build. Optimized for multiple locales! ## Sponsors -

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

- -