Compare commits
10 commits
8abab3d534
...
20ea949102
Author | SHA1 | Date | |
---|---|---|---|
|
20ea949102 | ||
|
dbef065579 | ||
|
0e6508ac07 | ||
|
99e3cc88c3 | ||
|
79723e278e | ||
|
3f6e0baa51 | ||
|
0e74e43b91 | ||
|
318a821e6b | ||
|
a419025705 | ||
|
c787584b12 |
8 changed files with 70 additions and 52 deletions
|
@ -1,15 +0,0 @@
|
||||||
// SPDX-FileCopyrightText: 2021 Johannes Loher
|
|
||||||
//
|
|
||||||
// SPDX-License-Identifier: MIT
|
|
||||||
|
|
||||||
module.exports = {
|
|
||||||
parser: "@typescript-eslint/parser",
|
|
||||||
parserOptions: { ecmaVersion: 2020, sourceType: "module" },
|
|
||||||
env: { browser: true },
|
|
||||||
extends: ["plugin:@typescript-eslint/recommended", "prettier"],
|
|
||||||
plugins: ["@typescript-eslint"],
|
|
||||||
overrides: [
|
|
||||||
{ files: ["./*.cjs"], rules: { "@typescript-eslint/no-var-requires": "off" } },
|
|
||||||
{ files: ["./spec/**/*"], env: { browser: false } },
|
|
||||||
],
|
|
||||||
};
|
|
|
@ -23,6 +23,17 @@ variables:
|
||||||
- ${CI_REPO_NAME}/system.json
|
- ${CI_REPO_NAME}/system.json
|
||||||
api_key:
|
api_key:
|
||||||
from_secret: forge_token
|
from_secret: forge_token
|
||||||
|
- &publish_manifest_base
|
||||||
|
image: alpine:latest
|
||||||
|
environment:
|
||||||
|
FORGE_TOKEN:
|
||||||
|
from_secret: forge_token
|
||||||
|
commands:
|
||||||
|
- apk update
|
||||||
|
- apk add curl
|
||||||
|
- export RELEASE_CHANNEL=$(cat .RELEASE_CHANNEL)
|
||||||
|
- 'curl --header "Authorization: token $${FORGE_TOKEN}" -X "DELETE" "${CI_FORGE_URL}/api/packages/${CI_REPO_OWNER}/generic/${CI_REPO_NAME}/$${RELEASE_CHANNEL}/system.json"'
|
||||||
|
- 'curl --fail --header "Authorization: token $${FORGE_TOKEN}" --upload-file ${CI_REPO_NAME}/system.json "${CI_FORGE_URL}/api/packages/${CI_REPO_OWNER}/generic/${CI_REPO_NAME}/$${RELEASE_CHANNEL}/system.json"'
|
||||||
|
|
||||||
when:
|
when:
|
||||||
event: tag
|
event: tag
|
||||||
|
@ -38,6 +49,7 @@ steps:
|
||||||
- <<: *enable_pnpm
|
- <<: *enable_pnpm
|
||||||
- pnpm install --frozen-lockfile
|
- pnpm install --frozen-lockfile
|
||||||
build:
|
build:
|
||||||
|
depends_on: install
|
||||||
image: *node_image
|
image: *node_image
|
||||||
environment:
|
environment:
|
||||||
NODE_ENV: production
|
NODE_ENV: production
|
||||||
|
@ -46,7 +58,7 @@ steps:
|
||||||
- <<: *enable_pnpm
|
- <<: *enable_pnpm
|
||||||
- pnpm build
|
- pnpm build
|
||||||
package:
|
package:
|
||||||
group: prepare-release
|
depends_on: build
|
||||||
image: alpine:latest
|
image: alpine:latest
|
||||||
commands:
|
commands:
|
||||||
- apk update
|
- apk update
|
||||||
|
@ -54,61 +66,67 @@ steps:
|
||||||
- mv dist ${CI_REPO_NAME}
|
- mv dist ${CI_REPO_NAME}
|
||||||
- zip -r ${CI_REPO_NAME}.zip ${CI_REPO_NAME}/*
|
- zip -r ${CI_REPO_NAME}.zip ${CI_REPO_NAME}/*
|
||||||
changelog:
|
changelog:
|
||||||
group: prepare-release
|
depends_on: build
|
||||||
image: *node_image
|
image: *node_image
|
||||||
commands:
|
commands:
|
||||||
- <<: *enable_pnpm
|
- <<: *enable_pnpm
|
||||||
- pnpm changelog
|
- pnpm changelog
|
||||||
choose-latest-channel:
|
choose-latest-channel:
|
||||||
group: prepare-release
|
depends_on: build
|
||||||
image: alpine:latest
|
image: alpine:latest
|
||||||
commands:
|
commands:
|
||||||
- echo latest > .RELEASE_CHANNEL
|
- echo latest > .RELEASE_CHANNEL
|
||||||
when:
|
when:
|
||||||
<<: *is_latest_channel
|
<<: *is_latest_channel
|
||||||
choose-beta-channel:
|
choose-beta-channel:
|
||||||
group: prepare-release
|
depends_on: build
|
||||||
image: alpine:latest
|
image: alpine:latest
|
||||||
commands:
|
commands:
|
||||||
- echo beta > .RELEASE_CHANNEL
|
- echo beta > .RELEASE_CHANNEL
|
||||||
when:
|
when:
|
||||||
<<: *is_beta_channel
|
<<: *is_beta_channel
|
||||||
release-latest:
|
release-latest:
|
||||||
|
depends_on:
|
||||||
|
- package
|
||||||
|
- changelog
|
||||||
|
- choose-latest-channel
|
||||||
image: *release_plugin
|
image: *release_plugin
|
||||||
settings:
|
settings:
|
||||||
<<: *release_base_settings
|
<<: *release_base_settings
|
||||||
when:
|
when:
|
||||||
<<: *is_latest_channel
|
<<: *is_latest_channel
|
||||||
release-beta:
|
release-beta:
|
||||||
|
depends_on:
|
||||||
|
- package
|
||||||
|
- changelog
|
||||||
|
- choose-beta-channel
|
||||||
image: *release_plugin
|
image: *release_plugin
|
||||||
settings:
|
settings:
|
||||||
<<: *release_base_settings
|
<<: *release_base_settings
|
||||||
prerelease: true
|
prerelease: true
|
||||||
when:
|
when:
|
||||||
<<: *is_beta_channel
|
<<: *is_beta_channel
|
||||||
publish-manifest:
|
publish-manifest-latest:
|
||||||
group: publish
|
<<: *publish_manifest_base
|
||||||
image: alpine:latest
|
depends_on: release-latest
|
||||||
commands:
|
when:
|
||||||
- apk update
|
<<: *is_latest_channel
|
||||||
- apk add curl
|
publish-manifest-beta:
|
||||||
- export RELEASE_CHANNEL=$(cat .RELEASE_CHANNEL)
|
<<: *publish_manifest_base
|
||||||
- 'curl --header "Authorization: token $${FORGE_TOKEN}" -X "DELETE" "${CI_FORGE_URL}/api/packages/${CI_REPO_OWNER}/generic/${CI_REPO_NAME}/$${RELEASE_CHANNEL}/system.json"'
|
depends_on: release-beta
|
||||||
- 'curl --fail --header "Authorization: token $${FORGE_TOKEN}" --upload-file ${CI_REPO_NAME}/system.json "${CI_FORGE_URL}/api/packages/${CI_REPO_OWNER}/generic/${CI_REPO_NAME}/$${RELEASE_CHANNEL}/system.json"'
|
when:
|
||||||
secrets:
|
<<: *is_beta_channel
|
||||||
- forge_token
|
|
||||||
publish-to-foundry-admin:
|
publish-to-foundry-admin:
|
||||||
group: publish
|
depends_on: release-latest
|
||||||
image: johannesloher/foundry-publish
|
image: johannesloher/foundry-publish:v4.0.0
|
||||||
environment:
|
environment:
|
||||||
FVTT_DELETE_OBSOLETE_VERSIONS: "true"
|
FVTT_PACKAGE_ID:
|
||||||
|
from_secret: fvtt_package_id
|
||||||
|
FVTT_TOKEN:
|
||||||
|
from_secret: fvtt_token
|
||||||
commands:
|
commands:
|
||||||
- export FVTT_MANIFEST_PATH=${CI_REPO_NAME}/system.json
|
- export FVTT_MANIFEST_PATH=${CI_REPO_NAME}/system.json
|
||||||
- export FVTT_MANIFEST_URL=${CI_REPO_URL}/releases/download/${CI_COMMIT_TAG}/system.json
|
- export FVTT_MANIFEST_URL=${CI_REPO_URL}/releases/download/${CI_COMMIT_TAG}/system.json
|
||||||
- foundry-publish
|
- foundry-publish
|
||||||
secrets:
|
|
||||||
- fvtt_package_id
|
|
||||||
- fvtt_username
|
|
||||||
- fvtt_password
|
|
||||||
when:
|
when:
|
||||||
<<: *is_latest_channel
|
<<: *is_latest_channel
|
||||||
|
|
|
@ -25,6 +25,11 @@ steps:
|
||||||
- pnpm install --frozen-lockfile
|
- pnpm install --frozen-lockfile
|
||||||
release:
|
release:
|
||||||
image: *node_image
|
image: *node_image
|
||||||
|
environment:
|
||||||
|
FORGE_TOKEN_NAME:
|
||||||
|
from_secret: forge_token_name
|
||||||
|
FORGE_TOKEN:
|
||||||
|
from_secret: forge_token
|
||||||
commands:
|
commands:
|
||||||
- <<: *enable_pnpm
|
- <<: *enable_pnpm
|
||||||
- apt-get update
|
- apt-get update
|
||||||
|
@ -42,6 +47,3 @@ steps:
|
||||||
- git tag -f $${RELEASE_VERSION}
|
- git tag -f $${RELEASE_VERSION}
|
||||||
- git push origin ${CI_COMMIT_BRANCH}
|
- git push origin ${CI_COMMIT_BRANCH}
|
||||||
- git push origin $${RELEASE_VERSION}
|
- git push origin $${RELEASE_VERSION}
|
||||||
secrets:
|
|
||||||
- forge_token_name
|
|
||||||
- forge_token
|
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
// SPDX-FileCopyrightText: 2021 Johannes Loher
|
|
||||||
//
|
|
||||||
// SPDX-License-Identifier: MIT
|
|
||||||
|
|
||||||
module.exports = { extends: ["@commitlint/config-conventional"] };
|
|
8
commitlint.config.js
Normal file
8
commitlint.config.js
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
// SPDX-FileCopyrightText: 2021 Johannes Loher
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @type {import("@commitlint/types").UserConfig}
|
||||||
|
*/
|
||||||
|
export default { extends: ["@commitlint/config-conventional"] };
|
|
@ -2,7 +2,7 @@
|
||||||
"private": true,
|
"private": true,
|
||||||
"name": "dungeonslayers4",
|
"name": "dungeonslayers4",
|
||||||
"description": "An implementation of the Dungeonslayers 4 game system for Foundry Virtual Tabletop.",
|
"description": "An implementation of the Dungeonslayers 4 game system for Foundry Virtual Tabletop.",
|
||||||
"version": "2.0.0",
|
"version": "2.0.5",
|
||||||
"license": "https://git.f3l.de/dungeonslayers/ds4#licensing",
|
"license": "https://git.f3l.de/dungeonslayers/ds4#licensing",
|
||||||
"homepage": "https://git.f3l.de/dungeonslayers/ds4",
|
"homepage": "https://git.f3l.de/dungeonslayers/ds4",
|
||||||
"repository": {
|
"repository": {
|
||||||
|
@ -93,5 +93,10 @@
|
||||||
"vitest": "3.0.6",
|
"vitest": "3.0.6",
|
||||||
"yargs": "17.7.2"
|
"yargs": "17.7.2"
|
||||||
},
|
},
|
||||||
"packageManager": "pnpm@10.4.1"
|
"packageManager": "pnpm@10.4.1",
|
||||||
|
"pnpm": {
|
||||||
|
"onlyBuiltDependencies": [
|
||||||
|
"@swc/core"
|
||||||
|
]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,6 +2,11 @@
|
||||||
//
|
//
|
||||||
// SPDX-License-Identifier: MIT
|
// SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
|
// @ts-check
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @type {import("prettier").Config}
|
||||||
|
*/
|
||||||
export default {
|
export default {
|
||||||
semi: true,
|
semi: true,
|
||||||
trailingComma: "all",
|
trailingComma: "all",
|
10
system.json
10
system.json
|
@ -28,11 +28,11 @@
|
||||||
"name": "Sascha Martens"
|
"name": "Sascha Martens"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"license": "https://git.f3l.de/dungeonslayers/ds4/raw/tag/2.0.0/LICENSE.md",
|
"license": "https://git.f3l.de/dungeonslayers/ds4/raw/tag/2.0.5/LICENSE.md",
|
||||||
"readme": "https://git.f3l.de/dungeonslayers/ds4/raw/tag/2.0.0/README.md",
|
"readme": "https://git.f3l.de/dungeonslayers/ds4/raw/tag/2.0.5/README.md",
|
||||||
"bugs": "https://git.f3l.de/dungeonslayers/ds4/issues",
|
"bugs": "https://git.f3l.de/dungeonslayers/ds4/issues",
|
||||||
"changelog": "https://git.f3l.de/dungeonslayers/ds4/releases/tag/2.0.0",
|
"changelog": "https://git.f3l.de/dungeonslayers/ds4/releases/tag/2.0.5",
|
||||||
"version": "2.0.0",
|
"version": "2.0.5",
|
||||||
"flags": {
|
"flags": {
|
||||||
"hotReload": {
|
"hotReload": {
|
||||||
"extensions": ["css", "hbs", "json"],
|
"extensions": ["css", "hbs", "json"],
|
||||||
|
@ -116,7 +116,7 @@
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"manifest": "https://git.f3l.de/api/packages/dungeonslayers/generic/ds4/latest/system.json",
|
"manifest": "https://git.f3l.de/api/packages/dungeonslayers/generic/ds4/latest/system.json",
|
||||||
"download": "https://git.f3l.de/dungeonslayers/ds4/releases/download/2.0.0/ds4.zip",
|
"download": "https://git.f3l.de/dungeonslayers/ds4/releases/download/2.0.5/ds4.zip",
|
||||||
"initiative": "@combatValues.initiative.total",
|
"initiative": "@combatValues.initiative.total",
|
||||||
"grid": {
|
"grid": {
|
||||||
"distance": 1,
|
"distance": 1,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue