Skip to content

Commit

Permalink
add experimental-release pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
tatomyr committed Jan 21, 2025
1 parent 662662a commit eeef163
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 7 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/experimental-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
--base experimental \
--head "$SOURCE_BRANCH" \
--title "🧪 $PR_TITLE" \
--body "This PR was automatically created from #$PR_NUMBER when the 'experimental' label was added.
Original PR: #$PR_NUMBER" \
--label experimental
--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`.
37 changes: 37 additions & 0 deletions .github/workflows/experimental-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Experimental Release

on:
push:
branches:
- experimental

jobs:
release-experimental:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write

steps:
- 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
3 changes: 0 additions & 3 deletions .github/workflows/require-changeset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ jobs:
CI: true
steps:
- uses: actions/checkout@v3
with:
# check out full history
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: 20
Expand Down

0 comments on commit eeef163

Please sign in to comment.