Skip to content
This repository has been archived by the owner on Oct 5, 2024. It is now read-only.

Commit

Permalink
fix(build): bump release version to 0.22.2
Browse files Browse the repository at this point in the history
  • Loading branch information
kharann committed Nov 25, 2022
1 parent b64b674 commit db31281
Show file tree
Hide file tree
Showing 5 changed files with 57 additions and 59 deletions.
36 changes: 17 additions & 19 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,29 +4,27 @@ on: [push]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [12.x]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install dependencies
run: yarn
- name: Check linting
run: yarn lint-check
- name: Check formatting
run: yarn format-check

- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install dependencies
run: npm i
- name: Check linting
run: npm run lint-check
- name: Check formatting
run: npm run format-check
56 changes: 28 additions & 28 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,31 +14,31 @@ jobs:
node-version: [14.x]

steps:
- uses: actions/checkout@v2
with:
persist-credentials: false
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install dependencies
run: yarn
- name: Release
run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.npm_token }}
GIT_AUTHOR_NAME: dotkom
GIT_COMMITTER_NAME: dotkom
GIT_AUTHOR_EMAIL: dotkom@online.ntnu.no
GIT_COMMITTER_EMAIL: dotkom@online.ntnu.no
- name: Chromatic (update baseline)
run: yarn chromatic --auto-accept-changes
env:
CHROMATIC_APP_CODE: ${{ secrets.chromatic_app_token }}
- uses: actions/checkout@v2
with:
persist-credentials: false
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install dependencies
run: npm i
- name: Release
run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.npm_token }}
GIT_AUTHOR_NAME: dotkom
GIT_COMMITTER_NAME: dotkom
GIT_AUTHOR_EMAIL: dotkom@online.ntnu.no
GIT_COMMITTER_EMAIL: dotkom@online.ntnu.no
- name: Chromatic (update baseline)
run: npm run chromatic --auto-accept-changes
env:
CHROMATIC_APP_CODE: ${{ secrets.chromatic_app_token }}
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,24 +43,24 @@ To get the fonts and icons to work you will also need to include them in the hea

## Development

`yarn` to install the dependencies.
`npm i` to install the dependencies.

`yarn start` to start the storybook environment.
`npm run start` to start the storybook environment.

### Before contributing

You will need to follow the rules from `eslint` and `prettier`. To verify that you follow the rules, run:

```bash
yarn lint-check
yarn format-check
npm run lint-check
npm run format-check
```

If you want to autoformat, use these:

```bash
yarn lint
yarn format
npm run lint
npm run format
```

If you want to run a chromatic test (UI image diff), use:
Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dotkomonline/design-system",
"version": "0.22.1",
"version": "0.22.2",
"source": "src/index.ts",
"main": "dist/index.js",
"module": "dist/index.modern.mjs",
Expand Down Expand Up @@ -35,7 +35,7 @@
"@mdx-js/loader": "1.2.2",
"@types/jest": "^24.0.18",
"@types/markdown-to-jsx": "^6.9.1",
"@types/node": "12.7.5",
"@types/node": "^14.17.5",
"@types/react": "16.9.2",
"@types/react-dom": "16.9.0",
"@types/storybook__react": "^4.0.2",
Expand Down

0 comments on commit db31281

Please sign in to comment.