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

fix: update release pipeline #701

Merged
merged 6 commits into from
Oct 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
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
8 changes: 4 additions & 4 deletions .github/workflows/dry-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,19 +56,19 @@ jobs:

- name: Build vsix miranum-config-editor
working-directory: apps/miranum-config-editor
run: vsce package --no-dependencies --out miranum-config-editor.vsix --yarn
run: vsce package --out miranum-config-editor.vsix --yarn --no-dependencies

- name: Build vsix miranum-console
working-directory: apps/miranum-console
run: vsce package --no-dependencies --out miranum-console.vsix --yarn
run: vsce package --out miranum-console.vsix --yarn --no-dependencies

- name: Build vsix miranum-jsonforms
working-directory: apps/miranum-jsonforms
run: vsce package --no-dependencies --out miranum-jsonforms.vsix --yarn
run: vsce package --out miranum-jsonforms.vsix --yarn --no-dependencies

- name: Build vsix miranum-modeler
working-directory: apps/miranum-modeler
run: vsce package --no-dependencies --out miranum-modeler.vsix --yarn
run: vsce package --out miranum-modeler.vsix --yarn --no-dependencies

- name: Collect vsix
run: |
Expand Down
44 changes: 9 additions & 35 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,24 +38,15 @@ jobs:
- name: PREP / Setup yarn
run: corepack enable

# - name: Disable global yarn cache
# run: yarn config set enableGlobalCache false

- name: Setup NodeJS 20
uses: actions/setup-node@v4
with:
node-version: '20'
registry-url: 'https://registry.npmjs.org'

# - name: PREP / Set Yarn Cache Directory
# id: yarn-cache-dir-path
# run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT

# - name: PREP / Restore Yarn Cache
# uses: actions/cache@v4
# with:
# path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
# key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
# restore-keys: |
# ${{ runner.os }}-yarn-

- name: PREP / Install dependencies
run: yarn

Expand Down Expand Up @@ -136,21 +127,14 @@ jobs:
with:
name: miranum-cli

- name: PREP / Setup yarn
run: corepack enable

- name: PREP / Setup NodeJS 20
uses: actions/setup-node@v4
with:
node-version: '20'
registry-url: 'https://registry.npmjs.org'

- name: PREP / Setup .yarnrc.yml
run: yarn config set npmAuthToken $NPM_AUTH_TOKEN
env:
NPM_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_SECRET }}
- name: RELEASE / Publish
run: yarn npm publish --access public
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_SECRET }}

Expand All @@ -172,11 +156,6 @@ jobs:
node-version: '20'
registry-url: 'https://registry.npmjs.org'

# - name: PREP / Setup .yarnrc.yml
# run: yarn config set npmAuthToken $NPM_AUTH_TOKEN
# env:
# NPM_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_SECRET }}

- name: RELEASE / Publish
run: npm publish --access public
env:
Expand All @@ -200,11 +179,6 @@ jobs:
node-version: '20'
registry-url: 'https://registry.npmjs.org'

# - name: PREP / Setup .yarnrc.yml
# run: yarn config set npmAuthToken $NPM_AUTH_TOKEN
# env:
# NPM_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_SECRET }}

- name: RELEASE / Publish
run: npm publish --access public
env:
Expand Down Expand Up @@ -232,7 +206,7 @@ jobs:
run: npm install -g @vscode/vsce@latest

- name: RELEASE / Publish extension
run: vsce publish --yarn
run: vsce publish --yarn --no-dependencies
env:
VSCE_PAT: ${{ secrets.VSCE_PUBLISH }}

Expand Down Expand Up @@ -261,7 +235,7 @@ jobs:
run: npm install -g @vscode/vsce@latest

- name: RELEASE / Publish extension
run: vsce publish --yarn
run: vsce publish --yarn --no-dependencies
env:
VSCE_PAT: ${{ secrets.VSCE_PUBLISH }}

Expand Down Expand Up @@ -290,7 +264,7 @@ jobs:
run: npm install -g @vscode/vsce@latest

- name: RELEASE / Publish extension
run: vsce publish --yarn
run: vsce publish --yarn --no-dependencies
env:
VSCE_PAT: ${{ secrets.VSCE_PUBLISH }}

Expand Down Expand Up @@ -319,7 +293,7 @@ jobs:
run: npm install -g @vscode/vsce@latest

- name: RELEASE / Publish extension
run: vsce publish --yarn
run: vsce publish --yarn --no-dependencies
env:
VSCE_PAT: ${{ secrets.VSCE_PUBLISH }}

Expand Down Expand Up @@ -348,7 +322,7 @@ jobs:
run: npm install -g @vscode/vsce@latest

- name: RELEASE / Publish extension
run: vsce publish --yarn
run: vsce publish --yarn --no-dependencies
env:
VSCE_PAT: ${{ secrets.VSCE_PUBLISH }}

Expand Down
3 changes: 2 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
/dist
/coverage

/.nx/cache
/.nx/cache
/.nx/workspace-data
Binary file modified .yarn/install-state.gz
Binary file not shown.
8 changes: 5 additions & 3 deletions apps/miranum-cli/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "apps/miranum-cli/src",
"projectType": "application",
"tags": [],
"targets": {
"build": {
"executor": "@nx/webpack:webpack",
Expand Down Expand Up @@ -105,9 +106,10 @@
"options": {
"jestConfig": "apps/miranum-cli/jest.config.ts",
"passWithNoTests": true,
"coverageReporters": ["clover"]
"coverageReporters": [
"clover"
]
}
}
},
"tags": []
}
}
144 changes: 72 additions & 72 deletions apps/miranum-config-editor-webview/project.json
Original file line number Diff line number Diff line change
@@ -1,79 +1,79 @@
{
"name": "miranum-config-editor-webview",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"projectType": "application",
"sourceRoot": "apps/miranum-config-editor-webview/src",
"tags": [],
"targets": {
"observe": {
"executor": "@nx/vite:build",
"outputs": ["{options.outputPath}"],
"defaultConfiguration": "development",
"options": {
"watch": true,
"outputPath": "dist/apps/miranum-config-editor/miranum-config-editor-webview",
"configFile": "apps/miranum-config-editor-webview/vite.config.mts",
"emptyOutDir": false
},
"configurations": {
"development": {
"extractLicenses": false,
"optimization": false,
"sourceMap": false,
"vendorChunk": true
}
}
},
"build": {
"executor": "@nx/vite:build",
"outputs": ["{options.outputPath}"],
"defaultConfiguration": "production",
"options": {
"outputPath": "dist/apps/miranum-config-editor/miranum-config-editor-webview"
},
"configurations": {
"development": {
"mode": "development"
"name": "miranum-config-editor-webview",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"projectType": "application",
"sourceRoot": "apps/miranum-config-editor-webview/src",
"tags": [],
"targets": {
"observe": {
"executor": "@nx/vite:build",
"outputs": ["{options.outputPath}"],
"defaultConfiguration": "development",
"options": {
"watch": true,
"outputPath": "dist/apps/miranum-config-editor/miranum-config-editor-webview",
"configFile": "apps/miranum-config-editor-webview/vite.config.mts",
"emptyOutDir": false
},
"configurations": {
"development": {
"extractLicenses": false,
"optimization": false,
"sourceMap": false,
"vendorChunk": true
}
}
},
"production": {
"mode": "production"
}
}
},
"serve": {
"executor": "@nx/vite:dev-server",
"defaultConfiguration": "development",
"options": {
"buildTarget": "miranum-config-editor-webview:build"
},
"configurations": {
"development": {
"buildTarget": "miranum-config-editor-webview:build:development",
"hmr": true
"build": {
"executor": "@nx/vite:build",
"outputs": ["{options.outputPath}"],
"defaultConfiguration": "production",
"options": {
"outputPath": "dist/apps/miranum-config-editor/miranum-config-editor-webview"
},
"configurations": {
"development": {
"mode": "development"
},
"production": {
"mode": "production"
}
}
},
"production": {
"buildTarget": "miranum-config-editor-webview:build:production",
"hmr": false
}
}
},
"preview": {
"executor": "@nx/vite:preview-server",
"defaultConfiguration": "development",
"options": {
"buildTarget": "miranum-config-editor-webview:build"
},
"configurations": {
"development": {
"buildTarget": "miranum-config-editor-webview:build:development"
"serve": {
"executor": "@nx/vite:dev-server",
"defaultConfiguration": "development",
"options": {
"buildTarget": "miranum-config-editor-webview:build"
},
"configurations": {
"development": {
"buildTarget": "miranum-config-editor-webview:build:development",
"hmr": true
},
"production": {
"buildTarget": "miranum-config-editor-webview:build:production",
"hmr": false
}
}
},
"preview": {
"executor": "@nx/vite:preview-server",
"defaultConfiguration": "development",
"options": {
"buildTarget": "miranum-config-editor-webview:build"
},
"configurations": {
"development": {
"buildTarget": "miranum-config-editor-webview:build:development"
},
"production": {
"buildTarget": "miranum-config-editor-webview:build:production"
}
}
},
"production": {
"buildTarget": "miranum-config-editor-webview:build:production"
"lint": {
"executor": "@nx/eslint:lint"
}
}
},
"lint": {
"executor": "@nx/eslint:lint"
}
}
}
Loading