From 5fb4daa618bb6911ff566530001f1320d818134e Mon Sep 17 00:00:00 2001 From: Alex Varchuk Date: Tue, 13 Sep 2022 15:11:20 +0300 Subject: [PATCH] chore: v2.0.0 (#2160) --- .github/workflows/main.yml | 80 +++++++++++++++++++------------------- CHANGELOG.md | 4 ++ README.md | 2 +- package-lock.json | 4 +- package.json | 2 +- 5 files changed, 48 insertions(+), 44 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3a2f8eff84..0c01bf2675 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -3,46 +3,46 @@ on: release: types: [published] jobs: - push_to_registry: - name: Push Docker image to GitHub Packages - runs-on: ubuntu-latest - permissions: - packages: write - contents: read - steps: - - name: Check out the repo - uses: actions/checkout@v3 - - name: Login to GitHub Container Registry - uses: docker/login-action@v1 - with: - registry: ghcr.io - username: ${{ github.repository_owner }} - password: ${{ secrets.GITHUB_TOKEN }} - - name: Prepare - id: prep - run: | - DOCKER_IMAGE=ghcr.io/redocly/redoc/cli - VERSION=edge - if [[ $GITHUB_REF == refs/tags/* ]]; then - VERSION=${GITHUB_REF#refs/tags/} - elif [[ $GITHUB_REF == refs/heads/* ]]; then - VERSION=$(echo ${GITHUB_REF#refs/heads/} | sed -r 's#/+#-#g') - elif [[ $GITHUB_REF == refs/pull/* ]]; then - VERSION=pr-${{ github.event.number }} - fi - TAGS="${DOCKER_IMAGE}:${VERSION},${DOCKER_IMAGE}:latest" - if [ "${{ github.event_name }}" = "push" ]; then - TAGS="$TAGS,${DOCKER_IMAGE}:sha-${GITHUB_SHA::8}" - fi - echo ::set-output name=version::${VERSION} - echo ::set-output name=tags::${TAGS} - echo ::set-output name=created::$(date -u +'%Y-%m-%dT%H:%M:%SZ') - - name: Push to GitHub Packages - uses: docker/build-push-action@v3 - with: - context: ./cli - push: ${{ github.event_name != 'pull_request' }} - tags: ${{ steps.prep.outputs.tags }} + # push_to_registry: + # name: Push Docker image to GitHub Packages + # runs-on: ubuntu-latest + # permissions: + # packages: write + # contents: read + # steps: + # - name: Check out the repo + # uses: actions/checkout@v3 + # - name: Login to GitHub Container Registry + # uses: docker/login-action@v1 + # with: + # registry: ghcr.io + # username: ${{ github.repository_owner }} + # password: ${{ secrets.GITHUB_TOKEN }} + # - name: Prepare + # id: prep + # run: | + # DOCKER_IMAGE=ghcr.io/redocly/redoc/cli + # VERSION=edge + # if [[ $GITHUB_REF == refs/tags/* ]]; then + # VERSION=${GITHUB_REF#refs/tags/} + # elif [[ $GITHUB_REF == refs/heads/* ]]; then + # VERSION=$(echo ${GITHUB_REF#refs/heads/} | sed -r 's#/+#-#g') + # elif [[ $GITHUB_REF == refs/pull/* ]]; then + # VERSION=pr-${{ github.event.number }} + # fi + # TAGS="${DOCKER_IMAGE}:${VERSION},${DOCKER_IMAGE}:latest" + # if [ "${{ github.event_name }}" = "push" ]; then + # TAGS="$TAGS,${DOCKER_IMAGE}:sha-${GITHUB_SHA::8}" + # fi + # echo ::set-output name=version::${VERSION} + # echo ::set-output name=tags::${TAGS} + # echo ::set-output name=created::$(date -u +'%Y-%m-%dT%H:%M:%SZ') + # - name: Push to GitHub Packages + # uses: docker/build-push-action@v3 + # with: + # context: ./cli + # push: ${{ github.event_name != 'pull_request' }} + # tags: ${{ steps.prep.outputs.tags }} dockerhub: name: Publish redoc image to DockerHub runs-on: ubuntu-latest diff --git a/CHANGELOG.md b/CHANGELOG.md index 2d89f443fb..f3a9cfb25d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +# [2.0.0](https://github.com/Redocly/redoc/compare/v2.0.0-rc.77...v2.0.0) (2022-09-12) + + + # [2.0.0-rc.77](https://github.com/Redocly/redoc/compare/v2.0.0-rc.76...v2.0.0-rc.77) (2022-09-06) diff --git a/README.md b/README.md index dec53a3912..1d03913bcd 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ # Generate interactive API documentation from OpenAPI definitions - [![Build Status](https://travis-ci.com/Redocly/redoc.svg?branch=main)](https://travis-ci.com/Redocly/redoc) [![Coverage Status](https://coveralls.io/repos/Redocly/redoc/badge.svg?branch=main&service=github)](https://coveralls.io/github/Redocly/redoc?branch=main) [![npm](http://img.shields.io/npm/v/redoc.svg)](https://www.npmjs.com/package/redoc) [![License](https://img.shields.io/npm/l/redoc.svg)](https://github.com/Redocly/redoc/blob/main/LICENSE) + [![Coverage Status](https://coveralls.io/repos/Redocly/redoc/badge.svg?branch=main&service=github)](https://coveralls.io/github/Redocly/redoc?branch=main) [![npm](http://img.shields.io/npm/v/redoc.svg)](https://www.npmjs.com/package/redoc) [![License](https://img.shields.io/npm/l/redoc.svg)](https://github.com/Redocly/redoc/blob/main/LICENSE) [![bundle size](http://img.badgesize.io/https://cdn.redoc.ly/redoc/latest/bundles/redoc.standalone.js?compression=gzip&max=300000)](https://cdn.redoc.ly/redoc/latest/bundles/redoc.standalone.js) [![npm](https://img.shields.io/npm/dm/redoc.svg)](https://www.npmjs.com/package/redoc) [![](https://data.jsdelivr.com/v1/package/npm/redoc/badge)](https://www.jsdelivr.com/package/npm/redoc) [![Docker Build Status](https://img.shields.io/docker/build/redocly/redoc.svg)](https://hub.docker.com/r/redocly/redoc/) diff --git a/package-lock.json b/package-lock.json index c5a38d283e..3c50664733 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "redoc", - "version": "2.0.0-rc.77", + "version": "2.0.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "redoc", - "version": "2.0.0-rc.77", + "version": "2.0.0", "license": "MIT", "dependencies": { "@redocly/openapi-core": "^1.0.0-beta.104", diff --git a/package.json b/package.json index 9e99db71c1..8af98f6fa9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "redoc", - "version": "2.0.0-rc.77", + "version": "2.0.0", "description": "ReDoc", "repository": { "type": "git",