@@ -2,17 +2,16 @@ name: Snapshot Release
22
33on :
44 pull_request :
5- types : [closed]
6- branches :
7- - snapshot
5+ types : [labeled]
86
97jobs :
108 release-snapshot :
11- if : github.event.pull_request.merged == true
9+ if : github.event.label.name == 'release a 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."
@@ -64,18 +65,20 @@ jobs:
6465 run : npm run compile
6566
6667 - name : Publish snapshot packages
67- env :
68- NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
68+ # env:
69+ # NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
6970 run : |
7071 git diff
7172
72- cd packages/core
73- npm publish --tag snapshot
74- sleep 10
73+ npm run pack:prepare # FIXME: remove this
74+
75+ # cd packages/core
76+ # npm publish --tag snapshot
77+ # sleep 10
7578
76- cd ../respect-core
77- npm publish --tag snapshot
78- sleep 10
79+ # cd ../respect-core
80+ # npm publish --tag snapshot
81+ # sleep 10
7982
80- cd ../cli
81- npm publish --tag snapshot
83+ # cd ../cli
84+ # npm publish --tag snapshot
0 commit comments