Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: set up semantic release #20

Merged
merged 2 commits into from
Mar 11, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
25 changes: 20 additions & 5 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",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was this version increase automatic? Does this tell me that it is working?

"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,14 +40,15 @@
"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": {
"react": "^17 || ^18",
"@ant-design/icons": "^5.3.0",
"@jsonforms/core": "^3.2.1",
"@jsonforms/react": "^3.2.1",
"@ant-design/icons": "^5.3.0",
"antd": "^5.14.0"
"antd": "^5.14.0",
"react": "^17 || ^18"
},
"devDependencies": {
"@ant-design/icons": "^5.3.0",
Expand Down Expand Up @@ -66,6 +80,7 @@
"json-schema-to-ts": "^3.0.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
Loading