Skip to content

Commit

Permalink
ci: prepare transition from nx-semantic-release to nx release
Browse files Browse the repository at this point in the history
  • Loading branch information
hkfb committed Sep 5, 2024
1 parent fa50d24 commit e5a6d72
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/semantic_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,15 @@ jobs:
- run: npm ci
working-directory: ./typescript

- name: Dry-run Nx release
working-directory: ./typescript
run: npx nx release --dry-run
env:
GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_GITHUB_TOKEN }}
GH_TOKEN: ${{ secrets.SEMANTIC_RELEASE_GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Run semantic release
working-directory: ./typescript
run: npx nx run-many --target=semantic-release --parallel=false
Expand Down
9 changes: 9 additions & 0 deletions typescript/nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,14 @@
"build": {
"dependsOn": ["^build"]
}
},
"release": {
"version": {"conventionalCommits": true},
"projectsRelationship": "independent",
"changelog": {
"projectChangelogs": {
"createRelease": "github"
}
}
}
}
1 change: 1 addition & 0 deletions typescript/packages/group-tree-plot/project.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"name": "group-tree-plot",
"targets": {
"semantic-release": {
"executor": "@theunderscorer/nx-semantic-release:semantic-release"
Expand Down
1 change: 1 addition & 0 deletions typescript/packages/subsurface-viewer/project.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"name": "subsurface-viewer",
"targets": {
"semantic-release": {
"executor": "@theunderscorer/nx-semantic-release:semantic-release"
Expand Down
1 change: 1 addition & 0 deletions typescript/packages/well-completions-plot/project.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"name": "well-completions-plot",
"targets": {
"semantic-release": {
"executor": "@theunderscorer/nx-semantic-release:semantic-release"
Expand Down
1 change: 1 addition & 0 deletions typescript/packages/well-log-viewer/project.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"name": "well-log-viewer",
"targets": {
"semantic-release": {
"executor": "@theunderscorer/nx-semantic-release:semantic-release"
Expand Down
1 change: 1 addition & 0 deletions typescript/packages/wsc-common/project.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"name": "wsc-common",
"targets": {
"semantic-release": {
"executor": "@theunderscorer/nx-semantic-release:semantic-release"
Expand Down

0 comments on commit e5a6d72

Please sign in to comment.