Skip to content

Commit

Permalink
fix: update semantic-release to correct publication on npm
Browse files Browse the repository at this point in the history
  • Loading branch information
ThibaudAV committed Jan 29, 2024
1 parent 8ef7399 commit fbc4f86
Show file tree
Hide file tree
Showing 4 changed files with 2,171 additions and 810 deletions.
54 changes: 27 additions & 27 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,8 @@ jobs:
dry_run:
type: boolean
default: true
executor:
class: small
name: node-lts
docker:
- image: cimg/node:16.13
steps:
- add_ssh_keys:
fingerprints:
Expand All @@ -152,7 +151,7 @@ jobs:
- run:
name: 🚀 Release the Kraken
working_directory: << parameters.package_name >>
command: yarn semantic-release
command: yarn semantic-release --debug

build-storybook:
parameters:
Expand Down Expand Up @@ -321,28 +320,28 @@ workflows:
- build:
name: Build Angular
package_name: ui-particles-angular
- lint-test:
name: Lint & Test
requires:
- Build Angular
- build-storybook:
name: Build Angular Storybook
package_name: ui-particles-angular
requires:
- Lint & Test
- chromatic-deployment:
name: Chromatic deployment for Angular
context: cicd-orchestrator
package_name: ui-particles-angular
requires:
- Build Angular Storybook
pre-steps:
- keeper/env-export:
secret-url: keeper://TIlcGPFq4rN5GvgnZb9hng/field/password
var-name: GITHUB_TOKEN
- keeper/env-export:
secret-url: keeper://ZC9NhWiu_AgpJbmW0naJag/field/password
var-name: CHROMATIC_PROJECT_TOKEN
# - lint-test:
# name: Lint & Test
# requires:
# - Build Angular
# - build-storybook:
# name: Build Angular Storybook
# package_name: ui-particles-angular
# requires:
# - Lint & Test
# - chromatic-deployment:
# name: Chromatic deployment for Angular
# context: cicd-orchestrator
# package_name: ui-particles-angular
# requires:
# - Build Angular Storybook
# pre-steps:
# - keeper/env-export:
# secret-url: keeper://TIlcGPFq4rN5GvgnZb9hng/field/password
# var-name: GITHUB_TOKEN
# - keeper/env-export:
# secret-url: keeper://ZC9NhWiu_AgpJbmW0naJag/field/password
# var-name: CHROMATIC_PROJECT_TOKEN
- release:
name: Release Angular
package_name: ui-particles-angular
Expand All @@ -368,4 +367,5 @@ workflows:
var-name: GIT_COMMITTER_EMAIL
context: cicd-orchestrator
requires:
- Chromatic deployment for Angular
# - Chromatic deployment for Angular
- Build Angular
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"name": "gravitee-ui-particles",
"private": true,
"description": "Gravitee.io - UI Particles",
"repository": {
"type": "git",
Expand Down Expand Up @@ -42,5 +41,8 @@
"sort-package-json": "2.1.0",
"svg-parser": "2.0.4"
},
"packageManager": "[email protected]"
"packageManager": "[email protected]",
"publishConfig": {
"access": "restricted"
}
}
9 changes: 6 additions & 3 deletions ui-particles-angular/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"name": "ui-particles-angular",
"version": "0.0.0-semantically-released",
"private": true,
"scripts": {
"build": "ng build ui-analytics && ng build ui-particles-angular && yarn ng build ui-policy-studio-angular",
"lint": "yarn lint:eslint && yarn lint:prettier && yarn lint:styles",
Expand Down Expand Up @@ -63,9 +62,10 @@
"@angular-eslint/template-parser": "15.2.1",
"@angular/cli": "15.2.10",
"@angular/compiler-cli": "15.2.10",
"@semantic-release/changelog": "6.0.2",
"@semantic-release/changelog": "6.0.3",
"@semantic-release/exec": "6.0.3",
"@semantic-release/git": "10.0.1",
"@semantic-release/npm": "9.0.2",
"@storybook/addon-a11y": "7.5.3",
"@storybook/addon-designs": "7.0.9",
"@storybook/addon-essentials": "7.5.3",
Expand All @@ -89,12 +89,15 @@
"prettier": "2.8.8",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"semantic-release": "18.0.1",
"semantic-release": "21.1.2",
"stylelint": "14.16.1",
"stylelint-config-idiomatic-order": "^9.0.0",
"stylelint-config-prettier-scss": "^0.0.1",
"stylelint-config-standard-scss": "^6.1.0",
"stylelint-order": "^6.0.1",
"typescript": "4.9.5"
},
"publishConfig": {
"access": "restricted"
}
}
Loading

0 comments on commit fbc4f86

Please sign in to comment.