From 2b486595cd288896138c8b045e97802b24b20885 Mon Sep 17 00:00:00 2001 From: Scyu_ Date: Wed, 2 Nov 2022 11:05:55 +0000 Subject: [PATCH] ci: add pre-release test to stable --- .github/workflows/test.yml | 35 +++++++++++++++++++++++++++++++++++ test-file-pre-release.json | 4 ++++ 2 files changed, 39 insertions(+) create mode 100644 test-file-pre-release.json diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7f75de6..78e0221 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -728,3 +728,38 @@ jobs: env: FILES: 'test-file.json' EXPECTED_VERSION: '1.4.6-alpha.0' + + test-pre-release-to-stable: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + with: + path: "./" + + - run: npm ci --prod + + - run: "git config --global user.email 'changelog@github.com'" + - run: "git config --global user.name 'Awesome Github action'" + - run: "git add . && git commit --allow-empty -m 'feat: Added fake file so version will be bumped'" + + - name: Generate changelog + id: changelog + uses: ./ + env: + ENV: 'dont-use-git' + EXPECTED_TAG: 'v1.5.0' + with: + github-token: ${{ secrets.github_token }} + version-file: 'test-file-pre-release.json' + pre-release: false # This is the default value, but we want to be explicit + + - name: Show file + run: | + echo "$(