-
-
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 #474 from fdm-monster/feat/prepare-gitflow
Feat/prepare gitflow
- Loading branch information
Showing
67 changed files
with
3,701 additions
and
1,728 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
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
github: [davidzwa, fdm-monster] # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2] | ||
# patreon: davidzwa # Replace with a single Patreon username | ||
ko_fi: davidzwa |
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 |
---|---|---|
@@ -0,0 +1,94 @@ | ||
name: Dist Release | ||
on: | ||
push: | ||
branches: | ||
- 'develop' | ||
- 'main' | ||
- 'release/*' # Add this line to include all release branches | ||
|
||
jobs: | ||
checkversion: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
foundClientVersion: ${{ steps.init.outputs.foundClientVersion }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: get-client-version | ||
# https://gist.github.com/DarrenN/8c6a5b969481725a4413?permalink_comment_id=3863317#gistcomment-3863317 | ||
run: | | ||
echo "CLIENT_VERSION=$(npm pkg get version | sed 's/"//g')" >> $GITHUB_ENV | ||
- uses: mukunku/[email protected] | ||
id: checkTag | ||
with: | ||
tag: ${{ env.CLIENT_VERSION }} | ||
- run: echo ${{ steps.checkTag.outputs.exists }} | ||
- name: Environment variables to output | ||
id: init | ||
run: | | ||
echo "foundClientVersion=${{ steps.checkTag.outputs.exists }}" >> $GITHUB_OUTPUT | ||
publish: | ||
needs: checkversion | ||
runs-on: ubuntu-latest | ||
environment: npm-release | ||
if: needs.checkversion.outputs.foundClientVersion == 'false' | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20.x | ||
|
||
# https://stackoverflow.com/questions/57968497/how-do-i-set-an-env-var-with-a-bash-expression-in-github-actions | ||
- name: get-client-version | ||
# https://gist.github.com/DarrenN/8c6a5b969481725a4413?permalink_comment_id=3863317#gistcomment-3863317 | ||
run: | | ||
echo "CLIENT_VERSION=$(npm pkg get version | sed 's/"//g')" >> $GITHUB_ENV | ||
# Build bundle | ||
- run: yarn set version berry | ||
- run: yarn install --immutable | ||
- run: yarn run build | ||
|
||
# Clear fields that make installing harder | ||
- name: Replace JSON Value | ||
run: | | ||
jq '.dependencies = {}' package.json > tmp.json && mv tmp.json package.json | ||
jq '.devDependencies = {}' package.json > tmp.json && mv tmp.json package.json | ||
- name: Output package.json | ||
run: | | ||
cat package.json | ||
# Publish to NPM | ||
- uses: JS-DevTools/npm-publish@v3 | ||
with: | ||
token: ${{ secrets.NPM_TOKEN }} | ||
package: package.json | ||
|
||
# Create GitHub release | ||
- name: Create release | ||
uses: actions/create-release@v1 | ||
id: create_release | ||
with: | ||
draft: false | ||
prerelease: ${{ contains(env.CLIENT_VERSION, 'rc') || contains(env.CLIENT_VERSION, 'unstable') }} | ||
release_name: "fdm-monster-client-next ${{ env.CLIENT_VERSION }}" | ||
tag_name: ${{ env.CLIENT_VERSION }} | ||
body: "Release notes not added" # ${{ steps.build_changelog.outputs.changelog }} | ||
env: | ||
GITHUB_TOKEN: ${{ github.token }} | ||
|
||
- name: action-zip | ||
uses: montudor/[email protected] | ||
with: | ||
args: zip -qq -r dist-client-${{ env.CLIENT_VERSION }}.zip dist ./package.json | ||
|
||
- name: Upload client bundle zip | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ github.token }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: dist-client-${{ env.CLIENT_VERSION }}.zip | ||
asset_name: dist-client-${{ env.CLIENT_VERSION }}.zip | ||
asset_content_type: application/zip | ||
|
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Vue publish | ||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- 'main' | ||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20.x | ||
cache: 'yarn' | ||
|
||
- run: yarn set version berry | ||
- run: yarn install --immutable | ||
- run: yarn run build | ||
- run: yarn run test:unit | ||
- uses: JS-DevTools/npm-publish@v3 | ||
if: ${{ github.repository.name == 'fdm-monster-client' }} | ||
with: | ||
dry-run: true | ||
token: ${{ secrets.NPM_TOKEN }} | ||
package: package.json |
Empty file.
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
nodeLinker: node-modules | ||
|
||
yarnPath: .yarn/releases/yarn-4.1.1.cjs | ||
yarnPath: .yarn/releases/yarn-4.5.1.cjs |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"name": "fdm-monster-client", | ||
"name": "@fdm-monster/client-next", | ||
"version": "0.0.0", | ||
"scripts": { | ||
"dev": "vite", | ||
|
@@ -22,32 +22,37 @@ | |
"@sentry/tracing": "7.114.0", | ||
"@sentry/vite-plugin": "2.22.6", | ||
"@sentry/vue": "8.35.0", | ||
"@tanstack/vue-query": "^5.28.13", | ||
"@types/node": "20.17.1", | ||
"@tanstack/vue-query": "5.59.16", | ||
"@testing-library/vue": "8.1.0", | ||
"@types/jsdom": "21.1.7", | ||
"@types/node": "22.8.1", | ||
"@types/semver": "7.5.8", | ||
"@typescript-eslint/eslint-plugin": "^8.0.0", | ||
"@typescript-eslint/parser": "^8.0.0", | ||
"@typescript-eslint/eslint-plugin": "8.0.0", | ||
"@typescript-eslint/parser": "8.0.0", | ||
"@vitejs/plugin-vue": "5.1.4", | ||
"@vitest/ui": "2.1.3", | ||
"@vitest/web-worker": "2.1.3", | ||
"@vue/eslint-config-typescript": "14.1.3", | ||
"@vue/test-utils": "2.4.6", | ||
"@vueuse/core": "11.1.0", | ||
"@vueuse/integrations": "11.1.0", | ||
"axios": "1.7.7", | ||
"axios-mock-adapter": "2.1.0", | ||
"c8": "10.1.2", | ||
"chart.js": "4.4.5", | ||
"eslint": "9.13.0", | ||
"eslint-config-prettier": "^9.1.0", | ||
"eslint-config-prettier": "9.1.0", | ||
"eslint-config-standard": "17.1.0", | ||
"eslint-plugin-import": "2.31.0", | ||
"eslint-plugin-n": "17.11.1", | ||
"eslint-plugin-prettier": "^5.1.3", | ||
"eslint-plugin-prettier": "5.1.3", | ||
"eslint-plugin-promise": "7.1.0", | ||
"eslint-plugin-vue": "9.29.1", | ||
"eslint-plugin-vuetify": "2.4.0", | ||
"jwt-decode": "3.1.2", | ||
"jsdom": "25.0.1", | ||
"jwt-decode": "4.0.0", | ||
"pinia": "2.2.4", | ||
"prettier": "^3.2.5", | ||
"prettier": "3.2.5", | ||
"sass": "1.80.4", | ||
"selective-object-reuse": "1.0.6", | ||
"semver": "7.6.3", | ||
|
@@ -59,10 +64,10 @@ | |
"vite": "5.4.10", | ||
"vite-plugin-vuetify": "2.0.4", | ||
"vitest": "2.1.3", | ||
"vue-axios": "3.5.2", | ||
"vue-chartjs": "5.3.1", | ||
"vue-router": "4.4.5", | ||
"vue-tsc": "2.1.8", | ||
"vuedraggable": "4.1.0" | ||
} | ||
}, | ||
"packageManager": "[email protected]" | ||
} |
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
Oops, something went wrong.