Skip to content

Commit

Permalink
chore(release): 1.0.0-beta.4 (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
josokinas authored Jun 10, 2021
1 parent 5dc9c6a commit 495649a
Show file tree
Hide file tree
Showing 7 changed files with 62 additions and 26 deletions.
22 changes: 3 additions & 19 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
publish:
name: Publish package & library
name: Publish package
runs-on: ubuntu-latest

steps:
Expand All @@ -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/[email protected]
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 }}
45 changes: 45 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]

- name: Read .nvmrc
run: echo ::set-output name=NVMRC::$(cat .nvmrc)
id: nvm

- name: Setup Node (uses version from .nvmrc)
uses: actions/[email protected]
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 }}
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions libraries/android/castor-tokens/version.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"versionCode": 0,
"versionName": "0.0.0"
"versionCode": 1,
"versionName": "1.0.0-beta.4"
}
6 changes: 3 additions & 3 deletions 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,6 +1,6 @@
{
"name": "@onfido/castor-tokens",
"version": "1.0.0-beta.3",
"version": "1.0.0-beta.4",
"type": "module",
"private": true,
"workspaces": [
Expand Down
2 changes: 1 addition & 1 deletion packages/npm/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 495649a

Please sign in to comment.