Skip to content

Commit

Permalink
Fix release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
adamkudrna committed Nov 11, 2020
1 parent fb044b7 commit 14bd0bc
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 23 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pr-labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ jobs:
pr-labeler:
runs-on: ubuntu-18.04
steps:
- uses: TimonVS/pr-labeler-action@v3
- uses: TimonVS/pr-labeler-action@v3.1.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8 changes: 4 additions & 4 deletions .github/workflows/release-management.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:

- name: Check package.json for version change
id: check_package_version
uses: EndBug/version-check@v1
uses: EndBug/version-check@v1.6.0

- name: Log when version changed
if: steps.check_package_version.outputs.changed == 'true'
Expand All @@ -63,7 +63,7 @@ jobs:
runs-on: ubuntu-18.04
steps:
- name: Draft release on GitHub
uses: release-drafter/release-drafter@v5
uses: release-drafter/release-drafter@v5.12.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand All @@ -80,7 +80,7 @@ jobs:
# `build_and_test` job first so this job is skipped rather than exited with an error.
- name: Publish matching GitHub release draft
id: github_release
uses: JamesMGreene/node-draft-releaser@v1
uses: JamesMGreene/node-draft-releaser@v1.1.2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand Down Expand Up @@ -139,7 +139,7 @@ jobs:
name: docs

- name: Deploy docs to GitHub Pages
uses: JamesIves/github-pages-deploy-action@3.6.2
uses: JamesIves/github-pages-deploy-action@3.7.1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
FOLDER: docs # Must match the name of the artifact used.
Expand Down
48 changes: 32 additions & 16 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,22 +23,38 @@ jobs:
with:
node-version: ${{ matrix.node-version }}

- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
path: ~/.npm
key: ${{ runner.os }}-build-node-v${{ matrix.node }}-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-node-v${{ matrix.node }}-${{ env.cache-name }}-
${{ runner.os }}-build-node-v${{ matrix.node }}-
# - name: Cache node modules
# uses: actions/cache@v2
# env:
# cache-name: cache-node-modules
# with:
# path: ~/.npm
# key: ${{ runner.os }}-build-node-v${{ matrix.node }}-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
# restore-keys: |
# ${{ runner.os }}-build-node-v${{ matrix.node }}-${{ env.cache-name }}-
# ${{ runner.os }}-build-node-v${{ matrix.node }}-
#
# - name: Install
# run: npm ci
#
# - name: Build
# run: npm run build
#
# - name: Test
# run: npm test

# TEST IN BRANCH
- name: Check package.json for version change
id: check_package_version
uses: EndBug/version-check@v1.6.0

- name: Install
run: npm ci
- name: Log
run: 'cat ./package.json'

- name: Build
run: npm run build
- name: Log when version changed
if: steps.check_package_version.outputs.changed == 'true'
run: 'echo "Version change found in commit ${{ steps.check_package_version.outputs.commit }}! New version: ${{ steps.check_package_version.outputs.version }} (${{ steps.check_package_version.outputs.type }})"'

- name: Test
run: npm test
- name: Log when version unchanged
if: steps.check_package_version.outputs.changed != 'true'
run: 'echo "No version change (${{ steps.check_package_version.outputs.changed }})"'
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@react-ui-org/react-ui",
"description": "React UI is a themeable UI library for React apps.",
"version": "0.34.0",
"version": "1.35.0",
"keywords": [
"react",
"ui",
Expand Down

0 comments on commit 14bd0bc

Please sign in to comment.