forked from remix-run/remix
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move experimental releases to a manually triggered workflow (remix-ru…
- Loading branch information
1 parent
db2e812
commit e37deeb
Showing
3 changed files
with
60 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: 🧪 Experimental Release | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
branch: | ||
required: true | ||
|
||
concurrency: ${{ github.workflow }}-${{ github.ref }} | ||
|
||
env: | ||
CI: true | ||
|
||
jobs: | ||
experimental: | ||
name: 🧪 Experimental Release | ||
if: github.repository == 'remix-run/remix' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: ⬇️ Checkout repo | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.event.inputs.branch }} | ||
# checkout using a custom token so that we can push later on | ||
token: ${{ secrets.NIGHTLY_PAT }} | ||
fetch-depth: 0 | ||
|
||
- name: 📦 Setup pnpm | ||
uses: pnpm/[email protected] | ||
|
||
- name: ⎔ Setup node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: ".nvmrc" | ||
cache: "pnpm" | ||
|
||
- name: 📥 Install deps | ||
run: pnpm install --frozen-lockfile | ||
|
||
- name: ⤴️ Update version | ||
run: | | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "Remix Run Bot" | ||
SHORT_SHA=$(git rev-parse --short HEAD) | ||
NEXT_VERSION=0.0.0-experimental-${SHORT_SHA} | ||
git checkout -b experimental/${NEXT_VERSION} | ||
pnpm run version ${NEXT_VERSION} --skip-prompt | ||
git push origin --tags | ||
- name: 🏗 Build | ||
run: pnpm build | ||
|
||
- name: 🔐 Setup npm auth | ||
run: | | ||
echo "registry=https://registry.npmjs.org" >> ~/.npmrc | ||
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >> ~/.npmrc | ||
- name: 🚀 Publish | ||
run: npm run publish |
This file was deleted.
Oops, something went wrong.