Skip to content

Commit 684db3e

Browse files
committed
chore: change snapshot release (#1993)
1 parent 03c845a commit 684db3e

File tree

4 files changed

+10
-51
lines changed

4 files changed

+10
-51
lines changed

.github/workflows/require-changeset.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ name: Require Either a Changeset or a Label 'no changeset needed'
22
on:
33
pull_request:
44
types: [opened, synchronize, reopened, labeled, unlabeled]
5+
branches:
6+
- main
57

68
jobs:
79
require-changeset-or-label:

.github/workflows/snapshot-pr.yaml

Lines changed: 0 additions & 44 deletions
This file was deleted.

.github/workflows/snapshot-release.yaml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,16 @@ name: Snapshot Release
22

33
on:
44
pull_request:
5-
types: [closed]
6-
branches:
7-
- snapshot
5+
types: [labeled]
86

97
jobs:
108
release-snapshot:
11-
if: github.event.pull_request.merged == true
9+
if: github.event.label.name == 'snapshot'
1210
runs-on: ubuntu-latest
1311
permissions:
1412
contents: write
1513
pull-requests: write
14+
1615
steps:
1716
- uses: actions/checkout@v4
1817

@@ -41,13 +40,15 @@ jobs:
4140
jq ".dependencies[\"@redocly/respect-core\"] = \"$VERSION\"" packages/cli/package.json > tmp.json && mv tmp.json packages/cli/package.json
4241
4342
# Add comment with installation instructions
44-
COMMENT="📦 A new experimental version **v$VERSION** of Redocly CLI has been published for testing.
43+
COMMENT="📦 A new experimental 🧪 version **v$VERSION** of Redocly CLI has been published for testing.
4544
4645
Install with NPM:
4746
\`\`\`bash
4847
npm install @redocly/cli@$VERSION
4948
# or
5049
npm install @redocly/openapi-core@$VERSION
50+
# or
51+
npm install @redocly/respect-core@$VERSION
5152
\`\`\`
5253
5354
⚠️ Note: This is a development build and may contain unstable features."

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)