Skip to content

Commit

Permalink
Add auto poblishing
Browse files Browse the repository at this point in the history
  • Loading branch information
shilman committed Aug 13, 2023
1 parent 088d12f commit b95890b
Show file tree
Hide file tree
Showing 3 changed files with 1,324 additions and 5 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
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
12 changes: 12 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"lib/**/*"
],
"devDependencies": {
"@auto-it/released": "^11.0.1",
"@babel/cli": "^7.6.4",
"@babel/core": "^7.6.4",
"@babel/plugin-proposal-class-properties": "^7.5.5",
Expand All @@ -21,13 +22,15 @@
"@babel/preset-flow": "^7.0.0",
"@babel/preset-react": "^7.6.3",
"@babel/register": "^7.6.2",
"auto": "^11.0.1",
"jest": "^24.9.0",
"jest-specific-snapshot": "^2.0.0",
"react-docgen-deprecation-handler": "1.1.1"
},
"scripts": {
"clean": "rm -rf lib",
"build": "babel src --out-dir lib",
"release": "yarn build && auto shipit",
"test": "jest",
"prepare": "npm run test && npm run clean && npm run build"
},
Expand All @@ -42,5 +45,14 @@
"lodash": "^4.17.21",
"react-docgen": "^5.0.0"
},
"auto": {
"plugins": [
"npm",
"released"
]
},
"publishConfig": {
"access": "public"
},
"license": "MIT"
}
Loading

0 comments on commit b95890b

Please sign in to comment.