Skip to content

Commit aaa0776

Browse files
committed
chore: make snapshot release easier
1 parent 933c953 commit aaa0776

File tree

2 files changed

+18
-59
lines changed

2 files changed

+18
-59
lines changed
Lines changed: 18 additions & 15 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 == '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

.github/workflows/snapshot-pr.yaml

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

0 commit comments

Comments
 (0)