Skip to content

Commit

Permalink
improve pr description and test publish wihout keys
Browse files Browse the repository at this point in the history
  • Loading branch information
tatomyr committed Jan 22, 2025
1 parent 817314e commit 5a194e0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/experimental-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,4 @@ jobs:
--body "This PR was automatically created from #$PR_NUMBER when the 'experimental' label was added.
Merging this PR will trigger an experimental package release to the NPM registry.
You will be able to install it with \`npm install @redocly/cli@experimental\`."
You will be able to install it under the experimental tag."
19 changes: 5 additions & 14 deletions .github/workflows/experimental-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,16 @@ jobs:
TIMESTAMP=$(date +%s)
VERSION="0.0.0-experimental.$TIMESTAMP"
echo "VERSION=$VERSION"
# Update Core package version
jq ".version = \"$VERSION\"" packages/core/package.json > tmp.json && mv tmp.json packages/core/package.json
# Update CLI package version and the Core dependency
jq ".version = \"$VERSION\"" packages/cli/package.json > tmp.json && mv tmp.json packages/cli/package.json
jq ".dependencies[\"@redocly/openapi-core\"] = \"$VERSION\"" packages/cli/package.json > tmp.json && mv tmp.json packages/cli/package.json
NEW_DESCRIPTION="Experimental release v$VERSION. Install it with \`npm install @redocly/cli@$VERSION\`."
NEW_DESCRIPTION="${{ github.event.pull_request.body }}
---
Experimental release v$VERSION. Install it with \`npm install @redocly/cli@$VERSION\`."
gh pr edit $PR_NUMBER --body "$NEW_DESCRIPTION"
env:
Expand All @@ -51,22 +51,13 @@ jobs:
- 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

- name: Publish experimental packages
# env:
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
git diff
cd packages/core
npm pack --tag experimental
npm publish --tag experimental
cd ../cli
npm pack --tag experimental
npm publish --tag experimental

0 comments on commit 5a194e0

Please sign in to comment.