Skip to content

Commit

Permalink
Merge pull request #63 from nteract/cameron.yick/docs-setup-auto
Browse files Browse the repository at this point in the history
[ci] Add auto to manage versions, changelog, and deployment to NPM
  • Loading branch information
emeeks authored Jun 26, 2021
2 parents 0fb8f8d + 2dc69b4 commit 4e65d36
Show file tree
Hide file tree
Showing 5 changed files with 1,850 additions and 22 deletions.
9 changes: 9 additions & 0 deletions .autorc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"plugins": [
"npm",
"conventional-commits",
"first-time-contributor",
"released"
],
"onlyPublishWithReleaseLabel": true
}
30 changes: 30 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# From the storybook-addon-kit config
# https://github.com/storybookjs/addon-kit/blob/fd8e1dc2c7cf60fdc5e69f44ac949aec4f4b0a7d/.github/workflows/release.yml#L1
name: Release

on: [push]

jobs:
release:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'skip ci')"
steps:
- uses: actions/checkout@v2

- name: Prepare repository
run: git fetch --unshallow --tags

- name: Use Node.js 14.x
uses: actions/setup-node@v1
with:
node-version: 14.x

- name: Install dependencies
uses: bahmutov/npm-install@v1

- name: Create Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
yarn release
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added

- Add Code of Conduct file
- Add `auto` to automate versioning and deployment #63

### Changed

- Update Semiotic
- Move to GH-Actions
- Bugfix for string columns #41 (@hydrosquall)

### Removed

Expand Down
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"type-check": "tsc --pretty -p tsconfig.json",
"test": "jest",
"styleguide": "styleguidist server",
"styleguide:build": "styleguidist build"
"styleguide:build": "styleguidist build",
"release": "yarn build && auto shipit"
},
"author": "Elijah Meeks <[email protected]>",
"repository": "https://github.com/nteract/data-explorer",
Expand Down Expand Up @@ -46,6 +47,8 @@
"semiotic": "^2.0.0-rc.8"
},
"devDependencies": {
"@auto-it/conventional-commits": "^10.29.3",
"@auto-it/first-time-contributor": "^10.29.3",
"@babel/core": "^7.7.7",
"@babel/preset-env": "^7.7.7",
"@babel/preset-react": "^7.7.4",
Expand All @@ -62,6 +65,7 @@
"@types/styled-components": "^5.0.1",
"acorn": "^7.1.1",
"acorn-jsx": "^5.1.0",
"auto": "^10.29.3",
"babel-loader": "^8.0.6",
"css-loader": "^3.4.1",
"enzyme": "^3.11.0",
Expand Down
Loading

0 comments on commit 4e65d36

Please sign in to comment.