Compare commits

..

No commits in common. "79723e278eae818235a57de37bc8c25076e8a634" and "318a821e6b00990a19ab3417a368200018ecf861" have entirely different histories.

6 changed files with 32 additions and 30 deletions

15
.eslintrc.cjs Normal file
View file

@ -0,0 +1,15 @@
// 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 } },
],
};

View file

@ -2,11 +2,6 @@
//
// SPDX-License-Identifier: MIT
// @ts-check
/**
* @type {import("prettier").Config}
*/
export default {
semi: true,
trailingComma: "all",

View file

@ -38,7 +38,6 @@ steps:
- <<: *enable_pnpm
- pnpm install --frozen-lockfile
build:
depends_on: install
image: *node_image
environment:
NODE_ENV: production
@ -47,7 +46,7 @@ steps:
- <<: *enable_pnpm
- pnpm build
package:
depends_on: build
group: prepare-release
image: alpine:latest
commands:
- apk update
@ -55,34 +54,32 @@ steps:
- mv dist ${CI_REPO_NAME}
- zip -r ${CI_REPO_NAME}.zip ${CI_REPO_NAME}/*
changelog:
depends_on: build
group: prepare-release
image: *node_image
commands:
- <<: *enable_pnpm
- pnpm changelog
choose-latest-channel:
depends_on: build
group: prepare-release
image: alpine:latest
commands:
- echo latest > .RELEASE_CHANNEL
when:
<<: *is_latest_channel
choose-beta-channel:
depends_on: build
group: prepare-release
image: alpine:latest
commands:
- echo beta > .RELEASE_CHANNEL
when:
<<: *is_beta_channel
release-latest:
depends_on: choose-latest-channel
image: *release_plugin
settings:
<<: *release_base_settings
when:
<<: *is_latest_channel
release-beta:
depends_on: choose-beta-channel
image: *release_plugin
settings:
<<: *release_base_settings
@ -90,7 +87,7 @@ steps:
when:
<<: *is_beta_channel
publish-manifest:
depends_on: [release-latest, release-beta]
group: publish
image: alpine:latest
commands:
- apk update
@ -101,14 +98,17 @@ steps:
secrets:
- forge_token
publish-to-foundry-admin:
depends_on: [release-latest, release-beta]
image: johannesloher/foundry-publish:v4.0.0
group: publish
image: johannesloher/foundry-publish:v3.0.1
environment:
FVTT_DELETE_OBSOLETE_VERSIONS: "true"
commands:
- export FVTT_MANIFEST_PATH=${CI_REPO_NAME}/system.json
- export FVTT_MANIFEST_URL=${CI_REPO_URL}/releases/download/${CI_COMMIT_TAG}/system.json
- foundry-publish
secrets:
- fvtt_package_id
- fvtt_token
- fvtt_username
- fvtt_password
when:
<<: *is_latest_channel

5
commitlint.config.cjs Normal file
View file

@ -0,0 +1,5 @@
// SPDX-FileCopyrightText: 2021 Johannes Loher
//
// SPDX-License-Identifier: MIT
module.exports = { extends: ["@commitlint/config-conventional"] };

View file

@ -1,8 +0,0 @@
// SPDX-FileCopyrightText: 2021 Johannes Loher
//
// SPDX-License-Identifier: MIT
/**
* @type {import("@commitlint/types").UserConfig}
*/
export default { extends: ["@commitlint/config-conventional"] };

View file

@ -93,10 +93,5 @@
"vitest": "3.0.6",
"yargs": "17.7.2"
},
"packageManager": "pnpm@10.4.1",
"pnpm": {
"onlyBuiltDependencies": [
"@swc/core"
]
}
"packageManager": "pnpm@10.4.1"
}