Skip to content

Commit eeef163

Browse files
committed
add experimental-release pipeline
1 parent 662662a commit eeef163

File tree

3 files changed

+41
-7
lines changed

3 files changed

+41
-7
lines changed

.github/workflows/experimental-pr.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
--base experimental \
3939
--head "$SOURCE_BRANCH" \
4040
--title "🧪 $PR_TITLE" \
41-
--body "This PR was automatically created from #$PR_NUMBER when the 'experimental' label was added.
42-
43-
Original PR: #$PR_NUMBER" \
44-
--label experimental
41+
--body "This PR was automatically created from #$PR_NUMBER when the 'experimental' label was added.
42+
43+
Merging this PR will trigger a experimental package release to the NPM registry.
44+
You will be able to install it with `npm install @redocly/cli@experimental`.
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Experimental Release
2+
3+
on:
4+
push:
5+
branches:
6+
- experimental
7+
8+
jobs:
9+
release-experimental:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: read
13+
id-token: write
14+
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
- name: Setup Node.js
19+
uses: actions/setup-node@v3
20+
with:
21+
node-version: 20
22+
cache: 'npm'
23+
24+
- name: Install dependencies
25+
run: npm ci
26+
27+
- name: Build packages
28+
run: npm run compile
29+
30+
- name: Publish experimental packages
31+
env:
32+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
33+
run: |
34+
cd packages/core
35+
npm publish --tag experimental
36+
cd ../cli
37+
npm publish --tag experimental

.github/workflows/require-changeset.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@ jobs:
1111
CI: true
1212
steps:
1313
- uses: actions/checkout@v3
14-
with:
15-
# check out full history
16-
fetch-depth: 0
1714
- uses: actions/setup-node@v3
1815
with:
1916
node-version: 20

0 commit comments

Comments
 (0)