Compare commits

...

9 Commits

7 changed files with 37 additions and 93 deletions

View File

@ -1,45 +0,0 @@
version: 2.1
orbs:
node: circleci/node@5.1.0
ssh: credijusto/ssh@0.5.2
workflows:
release:
jobs:
- node/run:
name: build
npm-run: build
post-steps:
- persist_to_workspace:
root: .
paths:
- lib/
filters:
branches:
only:
- master
- develop
- /^develop-.*$/
- node/run:
name: release
npm-run: semantic-release
requires:
- build
filters:
branches:
only:
- master
- develop
- /^develop-.*$/
context:
- publish
setup:
- attach_workspace:
at: ./
- add_ssh_keys:
fingerprints:
- "47:cf:a1:17:d9:81:8e:c5:51:e5:53:c8:33:e4:33:b9"
- ssh/ssh-add-host:
host_url: GITEA_HOST

19
.github/workflows/ci.yml vendored Normal file
View File

@ -0,0 +1,19 @@
name: Build/Publish
on:
workflow_dispatch:
inputs:
debug_enabled:
description: Debug
type: boolean
default: false
push:
branches:
- master
- develop
- develop-*
jobs:
main:
uses: lumeweb/github-node-deploy-workflow/.github/workflows/main.yml@master
secrets: inherit

View File

@ -1,3 +1,5 @@
## [0.1.1-develop.1](https://git.lumeweb.com/LumeWeb/node-library-preset/compare/v0.1.0...v0.1.1-develop.1) (2023-06-25)
# [0.1.0](https://git.lumeweb.com/LumeWeb/node-library-preset/compare/v0.0.1...v0.1.0) (2023-06-25) # [0.1.0](https://git.lumeweb.com/LumeWeb/node-library-preset/compare/v0.0.1...v0.1.0) (2023-06-25)

View File

@ -9,7 +9,7 @@ export default async function () {
return { return {
extends: ["presetter-preset-strict"], extends: ["presetter-preset-strict"],
template: { template: {
".circleci/config.yml": resolve(TEMPLATES, "circleci.yml"), ".github/workflows/ci.yml": resolve(TEMPLATES, "ci.yml"),
}, },
variable: DEFAULT_VARIABLE, variable: DEFAULT_VARIABLE,
supplementaryConfig: { supplementaryConfig: {
@ -19,4 +19,4 @@ export default async function () {
}, },
}; };
} }
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2V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QUFFLGFBQWEsRUFBRSxNQUFNLFVBQVUsQ0FBQztBQUl6QyxNQUFNLEdBQUcsR0FBRyxPQUFPLENBQUMsYUFBYSxDQUFDLE1BQU0sQ0FBQyxJQUFJLENBQUMsR0FBRyxDQUFDLENBQUMsQ0FBQztBQUdwRCxNQUFNLFNBQVMsR0FBRyxPQUFPLENBQUMsR0FBRyxFQUFFLElBQUksRUFBRSxXQUFXLENBQUMsQ0FBQztBQUNsRCxNQUFNLENBQUMsTUFBTSxnQkFBZ0IsR0FBRztJQUM5QixNQUFNLEVBQUUsS0FBSztDQUNkLENBQUM7QUFNRixNQUFNLENBQUMsT0FBTyxDQUFDLEtBQUs7SUFDbEIsT0FBTztRQUNMLE9BQU8sRUFBRSxDQUFDLHlCQUF5QixDQUFDO1FBQ3BDLFFBQVEsRUFBRTtZQUNSLDBCQUEwQixFQUFFLE9BQU8sQ0FBQyxTQUFTLEVBQUUsUUFBUSxDQUFDO1NBQ3pEO1FBQ0QsUUFBUSxFQUFFLGdCQUFnQjtRQUMxQixtQkFBbUIsRUFBRTtZQUNuQixRQUFRLEVBQUU7Z0JBQ1IsV0FBVyxFQUFFLEtBQUs7YUFDbkI7U0FDRjtLQUNGLENBQUM7QUFDSixDQUFDIn0=

View File

@ -19,7 +19,7 @@ export default async function (): Promise<PresetAsset> {
return { return {
extends: ["presetter-preset-strict"], extends: ["presetter-preset-strict"],
template: { template: {
".circleci/config.yml": resolve(TEMPLATES, "circleci.yml"), ".github/workflows/ci.yml": resolve(TEMPLATES, "ci.yml"),
}, },
variable: DEFAULT_VARIABLE, variable: DEFAULT_VARIABLE,
supplementaryConfig: { supplementaryConfig: {

13
templates/ci.yml Normal file
View File

@ -0,0 +1,13 @@
name: Build/Publish
on:
push:
branches:
- master
- develop
- develop-*
jobs:
main:
uses: lumeweb/github-node-deploy-workflow/.github/workflows/main.yml@master
secrets: inherit

View File

@ -1,45 +0,0 @@
version: 2.1
orbs:
node: circleci/node@5.1.0
ssh: credijusto/ssh@0.5.2
workflows:
release:
jobs:
- node/run:
name: build
npm-run: build
post-steps:
- persist_to_workspace:
root: .
paths:
- lib/
filters:
branches:
only:
- master
- develop
- /^develop-.*$/
- node/run:
name: release
npm-run: semantic-release
requires:
- build
filters:
branches:
only:
- master
- develop
- /^develop-.*$/
context:
- publish
setup:
- attach_workspace:
at: ./
- add_ssh_keys:
fingerprints:
- "47:cf:a1:17:d9:81:8e:c5:51:e5:53:c8:33:e4:33:b9"
- ssh/ssh-add-host:
host_url: GITEA_HOST