-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from kabisa/task/expand-publish-workflow
Update publish workflow to allow manual publishing without release
- Loading branch information
Showing
13 changed files
with
166 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,20 +4,33 @@ | |
name: Publish package to npmjs | ||
|
||
on: | ||
push: | ||
workflow_dispatch: | ||
release: | ||
types: [created] | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
env: | ||
CI_COMMIT_AUTHOR: Continuous Integration | ||
permissions: | ||
contents: write | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
# node-version 20.6 breaks the build, babel needs to catch up. | ||
# https://github.com/angular/angular-cli/issues/25782 | ||
node-version: "20.5" | ||
registry-url: https://registry.npmjs.org/ | ||
|
||
# Update the package version | ||
- if: ${{ github.event_name == 'push' }} | ||
name: Bump version | ||
run: | | ||
git config --global user.name "${{ env.CI_COMMIT_AUTHOR }}" | ||
git config --global user.email "[email protected]" | ||
npm version prepatch | ||
git push | ||
git push --tags | ||
- name: Publish to NPMJS | ||
run: npm publish --access public | ||
env: | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,11 +2,12 @@ | |
"name": "@kabisa/ui-components", | ||
"author": "Sander Camp", | ||
"license": "MIT", | ||
"version": "0.1.0", | ||
"version": "0.1.9-0", | ||
"packageManager": "[email protected]", | ||
"main": "./lib/index.js", | ||
"exports": { | ||
".": "./lib/index.js", | ||
"./index.css": "./lib/index.css", | ||
"./src/": "./src/" | ||
}, | ||
"files": [ | ||
|
@@ -25,6 +26,7 @@ | |
"@storybook/testing-library": "^0.2.0", | ||
"@szhsin/react-menu": "^4.0.3", | ||
"classnames": "^2.3.2", | ||
"postcss-url": "^10.1.3", | ||
"react-movable": "^3.0.4", | ||
"storybook": "^7.3.2" | ||
}, | ||
|
@@ -42,6 +44,7 @@ | |
"@types/babel__preset-env": "^7", | ||
"@types/css-modules": "^1.0.2", | ||
"@types/eslint": "^8", | ||
"@types/postcss-url": "^10", | ||
"@types/prettier": "^3", | ||
"@types/react": "^18.2.21", | ||
"@types/react-dom": "^18.2.7", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters