Skip to content

Commit

Permalink
feat: set up semantic release (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
DrewHoo committed Mar 11, 2024
1 parent f7c56a7 commit ec1263d
Show file tree
Hide file tree
Showing 3 changed files with 1,226 additions and 2 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@

name: Release
on:
push:
branches:
- main

permissions:
contents: read # for checkout

jobs:
release:
name: Release
runs-on: ubuntu-latest
permissions:
contents: write # to be able to publish a GitHub release
issues: write # to be able to comment on released issues
pull-requests: write # to be able to comment on released pull requests
id-token: write # to enable use of OIDC for npm provenance
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version-file: .nvmrc
- name: Install dependencies
run: npm clean-install
- name: Verify the integrity of provenance attestations and registry signatures for installed dependencies
run: npm audit signatures
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release
19 changes: 17 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@great-expectations/jsonforms-antd-renderers",
"private": false,
"version": "0.0.0",
"version": "0.1.0",
"files": [
"lib/**/*"
],
Expand All @@ -16,6 +16,19 @@
},
"default": "./lib/cjs/index.js"
},
"publishConfig": {
"provenance": true,
"access": "public"
},
"release": {
"branches": [
"main"
]
},
"repository": {
"type": "git",
"url": "https://github.com/great-expectations/jsonforms-antd-renderers.git"
},
"scripts": {
"clean": "rm -rf ./lib",
"build": "pnpm run clean && pnpm run build:esm && pnpm run build:cjs",
Expand All @@ -27,7 +40,8 @@
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview",
"storybook": "storybook dev -p 6006",
"build-storybook": "storybook build"
"build-storybook": "storybook build",
"semantic-release": "semantic-release"
},
"peerDependencies": {
"@ant-design/icons": "^5.3.0",
Expand Down Expand Up @@ -70,6 +84,7 @@
"lodash.isempty": "^4.4.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"semantic-release": "^23.0.2",
"storybook": "^7.6.8",
"typescript": "^5.2.2",
"vite": "^5.0.11",
Expand Down
Loading

0 comments on commit ec1263d

Please sign in to comment.