Skip to content

Commit b3296ab

Browse files
committed
refactor!: drop workflows-related things
BREAKING CHANGE: delete old push, login, and preview-docs commands
1 parent 3555d52 commit b3296ab

File tree

105 files changed

+242
-5262
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

105 files changed

+242
-5262
lines changed

.github/pull_request_template.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
## Check yourself
1010

11-
- [ ] Code changed? - Tested with redoc/reference-docs/workflows (internal)
11+
- [ ] Code changed? - Tested with redoc (internal)
1212
- [ ] All new/updated code is covered with tests
1313
- [ ] New package installed? - Tested in different environments (browser/node)
1414

.github/workflows/deploy-s3-sandbox.yaml

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

.github/workflows/release.yaml

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -45,37 +45,6 @@ jobs:
4545
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4646
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
4747

48-
deploy:
49-
needs: [release]
50-
if: needs.release.outputs.published == 'true'
51-
runs-on: ubuntu-latest
52-
steps:
53-
- uses: actions/checkout@v3
54-
- uses: actions/setup-node@v3
55-
with:
56-
node-version: 20
57-
cache: 'npm'
58-
- run: npm ci
59-
60-
- name: Bundle into single file
61-
run: npm run webpack-bundle
62-
63-
- name: Upload to AWS S3 bucket
64-
run: npm run upload
65-
env:
66-
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
67-
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
68-
AWS_DEFAULT_REGION: us-east-1
69-
AWS_S3_PATH: openapi-cli-dist
70-
71-
- name: Upload to AWS sandbox S3 bucket
72-
run: npm run upload
73-
env:
74-
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_SANDBOX_ACCESS_KEY_ID }}
75-
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SANDBOX_SECRET_ACCESS_KEY }}
76-
AWS_DEFAULT_REGION: us-east-1
77-
AWS_S3_PATH: redocly-sandbox-openapi-cli-dist
78-
7948
dockerhub:
8049
needs: [release]
8150
if: needs.release.outputs.published == 'true'
@@ -135,7 +104,6 @@ jobs:
135104
post-release-smoke-checks:
136105
needs:
137106
- release
138-
- deploy
139107
- dockerhub
140108
name: Test released version
141109
continue-on-error: true

.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/smoke.yaml

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -199,23 +199,6 @@ jobs:
199199
version: 10
200200
- run: bash ./__tests__/smoke/run-smoke.sh "pnpm add ./redocly-cli.tgz" "pnpm run"
201201

202-
run-smoke--webpack--node-22:
203-
needs: prepare-smoke
204-
runs-on: ubuntu-latest
205-
steps:
206-
- uses: actions/cache@v3
207-
with:
208-
path: __tests__/smoke/
209-
key: cache-${{ github.run_id }}-${{ github.run_attempt }}
210-
- uses: actions/setup-node@v3
211-
with:
212-
node-version: 22
213-
- run: |
214-
cd __tests__/smoke/
215-
node bundle.js --version
216-
node bundle.js lint openapi.yaml --extends minimal
217-
node bundle.js bundle openapi.yaml
218-
219202
run-smoke--npm--node-22--windows:
220203
needs: prepare-smoke
221204
runs-on: windows-latest

.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."

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ nodejs/
55
coverage/
66
.vscode/
77
yarn.lock
8-
dist/
98
lib/
109
output/
1110
*.tar.gz

.prettierignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
coverage/
2-
dist/
32
lib/
43
output/
54
*snapshot.js
65
packages/core/src/rules/__tests__/fixtures/invalid-yaml.yaml
76
packages/respect-core/src/modules/runtime-expressions/abnf-parser.js
8-
__tests__/webpack-bundle/bundle-workflows/metafile.json
97
benchmark/api-definitions/
108
LICENSE.md

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ You might need to adjust the CLI versions that need to be tested in the `benchma
236236
- **`packages/core/src/decorators`**: contains the built-in [decorators](../docs/resources/built-in-decorators.md) code.
237237
- **`packages/core/src/format`**: contains the format options.
238238
- **`packages/core/src/js-yaml`**: contains the [JS-YAML](https://www.npmjs.com/package/js-yaml) based functions.
239-
- **`packages/core/src/redocly`**: contains the Redocly API registry integration setup.
239+
<!-- - **`packages/core/src/redocly`**: contains the Redocly API registry integration setup. FIXME: update the structure description -->
240240
- **`packages/core/src/rules`**: contains the built-in [rules](../docs/resources/built-in-rules.md) code.
241241
- **`packages/core/src/types`**: contains the common types for several OpenAPI versions.
242242
- **`packages/core/src/typings`**: contains the common Typescript typings.

0 commit comments

Comments
 (0)