-
Notifications
You must be signed in to change notification settings - Fork 158
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: 🔖 release (chore: add experimental release pipelines) (#1855)
* chore: add experimental release pipelines * create experimental branch first * create experimental branch first * add experimental-release pipeline * fix prev commit --------- Co-authored-by: Andrew Tatomyr <[email protected]>
- Loading branch information
1 parent
648fb6c
commit 9e78a15
Showing
3 changed files
with
86 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Experimental PR Creation | ||
|
||
on: | ||
pull_request: | ||
types: [labeled] | ||
|
||
jobs: | ||
create-experimental-pr: | ||
if: github.event.label.name == 'experimental' | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
pull-requests: write | ||
|
||
steps: | ||
- name: Checkout main branch | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: main | ||
fetch-depth: 0 | ||
|
||
- name: Create the experimental branch | ||
run: git push origin main:refs/heads/experimental | ||
|
||
- name: Checkout the PR branch | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Create PR to experimental | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
PR_NUMBER: ${{ github.event.pull_request.number }} | ||
PR_TITLE: ${{ github.event.pull_request.title }} | ||
SOURCE_BRANCH: ${{ github.event.pull_request.head.ref }} | ||
run: | | ||
gh pr create \ | ||
--base experimental \ | ||
--head "$SOURCE_BRANCH" \ | ||
--title "🧪 $PR_TITLE" \ | ||
--body "This PR was automatically created from #$PR_NUMBER when the 'experimental' label was added. | ||
Merging this PR will trigger a experimental package release to the NPM registry. | ||
You will be able to install it with \`npm install @redocly/cli@experimental\`." |
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,41 @@ | ||
name: Experimental Release | ||
|
||
on: | ||
pull_request: | ||
types: [closed] | ||
branches: | ||
- experimental | ||
|
||
jobs: | ||
release-experimental: | ||
if: github.event.pull_request.merged == true | ||
runs-on: ubuntu-latest | ||
# permissions: | ||
# contents: read | ||
# id-token: write | ||
|
||
steps: | ||
- run: echo "Hello experimental release" | ||
|
||
# - uses: actions/checkout@v4 | ||
|
||
# - name: Setup Node.js | ||
# uses: actions/setup-node@v3 | ||
# with: | ||
# node-version: 20 | ||
# cache: 'npm' | ||
|
||
# - name: Install dependencies | ||
# run: npm ci | ||
|
||
# - name: Build packages | ||
# run: npm run compile | ||
|
||
# - name: Publish experimental packages | ||
# # env: | ||
# # NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
# run: | | ||
# cd packages/core | ||
# npm publish --tag experimental | ||
# cd ../cli | ||
# npm publish --tag experimental |
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 |
---|---|---|
|
@@ -52,6 +52,7 @@ | |
"OpenAPI linter", | ||
"Swagger linter", | ||
"AsyncAPI linter", | ||
"Arazzo linter", | ||
"oas" | ||
], | ||
"contributors": [ | ||
|