From 495649ad022d5870ed0766356f43e6d19cec78f2 Mon Sep 17 00:00:00 2001 From: Julius Osokinas <20243687+josokinas@users.noreply.github.com> Date: Thu, 10 Jun 2021 12:04:49 +0100 Subject: [PATCH] chore(release): 1.0.0-beta.4 (#75) --- .github/workflows/publish.yml | 22 ++-------- .github/workflows/release.yml | 45 ++++++++++++++++++++ CHANGELOG.md | 7 +++ libraries/android/castor-tokens/version.json | 4 +- package-lock.json | 6 +-- package.json | 2 +- packages/npm/package.json | 2 +- 7 files changed, 62 insertions(+), 26 deletions(-) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 4f543366..c20d1aaa 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -7,7 +7,7 @@ on: jobs: publish: - name: Publish package & library + name: Publish package runs-on: ubuntu-latest steps: @@ -26,27 +26,11 @@ jobs: - name: Install Node dependencies run: npm ci --no-audit --no-optional - - name: Setup OpenJDK - uses: actions/setup-java@v2 - with: - distribution: adopt - java-version: 11 - - - name: Build package & library - run: npm run build + - name: Build npm package + run: npm run build:npm - name: Publish to npm uses: JS-DevTools/npm-publish@v1.4.3 with: package: ./packages/npm/package.json token: ${{ secrets.NPM_TOKEN }} - - - name: Make GitHub release, publish asset - uses: softprops/action-gh-release@v1 - if: startsWith(github.ref, 'refs/tags/') - with: - files: | - libraries/android/castor-tokens/build/outputs/aar/castor-tokens-debug.aar - libraries/android/castor-tokens/build/outputs/aar/castor-tokens-release.aar - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..6ca26443 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,45 @@ +name: Release + +on: + push: + tags: + - v*.*.* + +jobs: + publish: + name: Release library + runs-on: ubuntu-latest + + steps: + - name: Checkout Git repository + uses: actions/checkout@v2.3.4 + + - name: Read .nvmrc + run: echo ::set-output name=NVMRC::$(cat .nvmrc) + id: nvm + + - name: Setup Node (uses version from .nvmrc) + uses: actions/setup-node@v2.1.5 + with: + node-version: ${{ steps.nvm.outputs.NVMRC }} + + - name: Install Node dependencies + run: npm ci --no-audit --no-optional + + - name: Setup OpenJDK + uses: actions/setup-java@v2 + with: + distribution: adopt + java-version: 11 + + - name: Build Android library + run: npm run build:android + + - name: Release on GitHub + uses: softprops/action-gh-release@v1 + with: + files: | + libraries/android/castor-tokens/build/outputs/aar/castor-tokens-debug.aar + libraries/android/castor-tokens/build/outputs/aar/castor-tokens-release.aar + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/CHANGELOG.md b/CHANGELOG.md index d97a6ea9..636799a3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,13 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. +## [1.0.0-beta.4](https://github.com/onfido/castor-tokens/compare/v1.0.0-beta.3...v1.0.0-beta.4) (2021-06-10) + +### Features + +- **android:** add initial implementation ([#58](https://github.com/onfido/castor-tokens/issues/58)) ([654b663](https://github.com/onfido/castor-tokens/commit/654b663fd147effd810a8cc7084cf9d0ff09b2b5)) +- add progress (content, background) colors ([#69](https://github.com/onfido/castor-tokens/issues/69)) ([90145d8](https://github.com/onfido/castor-tokens/commit/90145d8ee4fec5d4725273b4a94057aa8b8ced05)) + ## [1.0.0-beta.3](https://github.com/onfido/castor-tokens/compare/v1.0.0-beta.2...v1.0.0-beta.3) (2021-05-18) ### Features diff --git a/libraries/android/castor-tokens/version.json b/libraries/android/castor-tokens/version.json index 11551ed9..03a96339 100644 --- a/libraries/android/castor-tokens/version.json +++ b/libraries/android/castor-tokens/version.json @@ -1,4 +1,4 @@ { - "versionCode": 0, - "versionName": "0.0.0" + "versionCode": 1, + "versionName": "1.0.0-beta.4" } diff --git a/package-lock.json b/package-lock.json index 0c124893..69130577 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@onfido/castor-tokens", - "version": "1.0.0-beta.3", + "version": "1.0.0-beta.4", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@onfido/castor-tokens", - "version": "1.0.0-beta.3", + "version": "1.0.0-beta.4", "hasInstallScript": true, "workspaces": [ "packages/*" @@ -14562,7 +14562,7 @@ }, "packages/npm": { "name": "@onfido/castor-tokens", - "version": "1.0.0-beta.3", + "version": "1.0.0-beta.4", "license": "Apache-2.0" } }, diff --git a/package.json b/package.json index f23edb78..1b65d7ad 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@onfido/castor-tokens", - "version": "1.0.0-beta.3", + "version": "1.0.0-beta.4", "type": "module", "private": true, "workspaces": [ diff --git a/packages/npm/package.json b/packages/npm/package.json index 4342695f..0a76101e 100644 --- a/packages/npm/package.json +++ b/packages/npm/package.json @@ -1,6 +1,6 @@ { "name": "@onfido/castor-tokens", - "version": "1.0.0-beta.3", + "version": "1.0.0-beta.4", "description": "Design tokens for Castor.", "author": "Onfido", "license": "Apache-2.0",