dargstack_rgen 0.6.39 → 0.6.43

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,28 @@
1
+ name: Docker
2
+
3
+ on:
4
+ pull_request:
5
+ push:
6
+ release:
7
+ types: [published]
8
+
9
+ jobs:
10
+ docker:
11
+ name: Docker
12
+ uses: dargmuesli/github-actions/.github/workflows/docker.yml@0.6.3
13
+ secrets:
14
+ DOCKER_HUB_ACCESS_TOKEN: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
15
+ DOCKER_HUB_USER_NAME: ${{ secrets.DOCKER_HUB_USER_NAME }}
16
+ release-semantic:
17
+ needs: docker
18
+ name: Semantic Release
19
+ uses: dargmuesli/github-actions/.github/workflows/release-semantic.yml@0.6.3
20
+ secrets:
21
+ GH_TOKEN: ${{ secrets.GH_TOKEN }}
22
+ NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
23
+ release-assets:
24
+ needs: release-semantic
25
+ name: Release Assets
26
+ uses: dargmuesli/github-actions/.github/workflows/release-assets.yml@0.6.3
27
+ with:
28
+ TARGET: development
@@ -0,0 +1,12 @@
1
+ name: 'Release: Scheduled'
2
+
3
+ on:
4
+ schedule:
5
+ - cron: '0 0 * * 1' # Every Monday at 00:00 AM UTC on the default branch
6
+
7
+ jobs:
8
+ release-schedule:
9
+ name: 'Release: Scheduled'
10
+ uses: dargmuesli/github-actions/.github/workflows/release-schedule.yml@0.6.3
11
+ secrets:
12
+ GH_TOKEN: ${{ secrets.GH_TOKEN }}
package/CHANGELOG.md CHANGED
@@ -1,3 +1,31 @@
1
+ ## [0.6.43](https://github.com/dargmuesli/dargstack_rgen/compare/0.6.42...0.6.43) (2022-02-07)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **release:** schedule release ([ecc0cd2](https://github.com/dargmuesli/dargstack_rgen/commit/ecc0cd20f7f14f0cfdb43809aaeedfd24ebf190e))
7
+
8
+ ## [0.6.42](https://github.com/dargmuesli/dargstack_rgen/compare/0.6.41...0.6.42) (2022-01-31)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **release:** schedule release ([7e077db](https://github.com/dargmuesli/dargstack_rgen/commit/7e077db1a4d5de426ba544af5cc88eb9e93fceb5))
14
+
15
+ ## [0.6.41](https://github.com/dargmuesli/dargstack_rgen/compare/0.6.40...0.6.41) (2022-01-17)
16
+
17
+
18
+ ### Bug Fixes
19
+
20
+ * **release:** schedule release ([b5749ec](https://github.com/dargmuesli/dargstack_rgen/commit/b5749ecb0cf64c3c1a29558f6a345e7cc516d427))
21
+
22
+ ## [0.6.40](https://github.com/dargmuesli/dargstack_rgen/compare/0.6.39...0.6.40) (2022-01-10)
23
+
24
+
25
+ ### Bug Fixes
26
+
27
+ * **release:** schedule release ([efa8089](https://github.com/dargmuesli/dargstack_rgen/commit/efa8089d9053f7f0abf058590989b80981821e7e))
28
+
1
29
  ## [0.6.39](https://github.com/dargmuesli/dargstack_rgen/compare/0.6.38...0.6.39) (2021-12-27)
2
30
 
3
31
 
package/Dockerfile CHANGED
@@ -1,4 +1,4 @@
1
- FROM node:17.3.0-alpine@sha256:4522cc108ad7c055b71f545596bfc07632d9f9a41125ea12eabe8f04114807f3 AS development
1
+ FROM node:17.4.0-alpine@sha256:6f8ae702a7609f6f18d81ac72998e5d6f5d0ace9a13b866318c76340c6d986b2 AS development
2
2
 
3
3
  ENV HUSKY=0
4
4
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "dargstack_rgen",
3
- "version": "0.6.39",
4
- "scheduleVersion": "0.6.39",
3
+ "version": "0.6.43",
4
+ "scheduleVersion": "0.6.43",
5
5
  "description": "Generates a DargStack stack project readme.",
6
6
  "main": "src/generator.js",
7
7
  "repository": "https://github.com/dargmuesli/dargstack_rgen.git",
@@ -18,18 +18,18 @@
18
18
  "yargs": "17.3.1"
19
19
  },
20
20
  "devDependencies": {
21
- "@commitlint/cli": "16.0.0",
21
+ "@commitlint/cli": "16.1.0",
22
22
  "@commitlint/config-conventional": "16.0.0",
23
- "eslint": "8.5.0",
23
+ "eslint": "8.8.0",
24
24
  "eslint-config-standard": "16.0.3",
25
- "eslint-plugin-import": "2.25.3",
25
+ "eslint-plugin-import": "2.25.4",
26
26
  "eslint-plugin-node": "11.1.0",
27
27
  "eslint-plugin-promise": "6.0.0",
28
28
  "eslint-plugin-standard": "4.1.0",
29
29
  "husky": "7.0.4",
30
- "shx": "0.3.3"
30
+ "shx": "0.3.4"
31
31
  },
32
32
  "scripts": {
33
- "prepare": "if [ \"$HUSKY\" != \"0\" ]; then husky install && shx rm -rf .git/hooks && shx ln -s ../.husky .git/hooks; fi"
33
+ "prepare": "if [[ -d '.git' && -d '.husky' ]]; then husky install && shx rm -rf .git/hooks && shx ln -s ../.husky .git/hooks; fi"
34
34
  }
35
35
  }
@@ -1,122 +0,0 @@
1
- name: CI
2
-
3
- on: [create, pull_request, push]
4
-
5
- env:
6
- IMAGE_ID: ${{ github.repository }}
7
-
8
- jobs:
9
- docker:
10
- name: Docker
11
- runs-on: ubuntu-latest
12
- steps:
13
- - name: Git checkout
14
- uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # renovate: tag=v2.4.0
15
-
16
- - name: Docker Buildx setup
17
- id: buildx
18
- uses: docker/setup-buildx-action@94ab11c41e45d028884a99163086648e898eed25 # renovate: tag=v1.6.0
19
-
20
- - name: Registry login
21
- if: github.event_name != 'pull_request'
22
- run: echo "${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}" | docker login -u "${{ secrets.DOCKER_HUB_USER_NAME }}" --password-stdin
23
-
24
- - name: Build
25
- run: |
26
- # Strip git ref prefix from version
27
- VERSION=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,')
28
-
29
- # Use Docker `latest` tag convention
30
- [ "$VERSION" == "master" ] && VERSION=latest
31
-
32
- echo IMAGE_ID=$IMAGE_ID
33
- echo VERSION=$VERSION
34
-
35
- # Push the Docker image to the registry on git pushes that either pushed a tag or one of the following branches: [master, develop]
36
- if [[
37
- (
38
- "${{ github.event_name }}" == "create"
39
- &&
40
- ${{ startsWith(github.ref, 'refs/tags/') }} == "true"
41
- )
42
- ||
43
- (
44
- "${{ github.event_name }}" == "push"
45
- &&
46
- ${{ startsWith(github.ref, 'refs/heads/') }} == "true"
47
- &&
48
- (
49
- $VERSION == "latest"
50
- ||
51
- $VERSION == "develop"
52
- )
53
- )
54
- ]]
55
- then
56
- docker buildx build \
57
- --cache-from=$IMAGE_ID:cache \
58
- --cache-to=$IMAGE_ID:cache \
59
- --push \
60
- -t $IMAGE_ID:$VERSION \
61
- .
62
- else
63
- docker buildx build \
64
- --cache-from=$IMAGE_ID:cache \
65
- -t $IMAGE_ID:$VERSION \
66
- .
67
- fi
68
- semantic-release:
69
- if: github.event_name != 'pull_request'
70
- name: Semantic Release
71
- runs-on: ubuntu-latest
72
- needs: docker
73
- steps:
74
- - uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # renovate: tag=v2.4.0
75
- with:
76
- token: ${{ secrets.GH_TOKEN }}
77
- - name: Semantic Release
78
- uses: cycjimmy/semantic-release-action@5982a02995853159735cb838992248c4f0f16166 # renovate: tag=v2.7.0
79
- with:
80
- extra_plugins: |
81
- @semantic-release/changelog
82
- @semantic-release/git
83
- env:
84
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
85
- HUSKY: 0
86
- NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
87
- release-assets:
88
- if: startsWith(github.ref, 'refs/tags/')
89
- name: Release Assets
90
- runs-on: ubuntu-latest
91
- needs: semantic-release
92
- steps:
93
- - name: Git checkout
94
- uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # renovate: tag=v2.4.0
95
-
96
- - name: Docker Buildx setup
97
- id: buildx
98
- uses: docker/setup-buildx-action@94ab11c41e45d028884a99163086648e898eed25 # renovate: tag=v1.6.0
99
-
100
- - name: Build "build"
101
- run: |
102
- docker buildx build \
103
- --cache-from=$IMAGE_ID:cache \
104
- -t stage_build \
105
- --target development \
106
- --load \
107
- .
108
- docker container create --name extract stage_build
109
- docker container cp extract:/srv/app/src/ .
110
- docker container rm -f extract
111
-
112
- - name: Zip
113
- uses: montudor/action-zip@0852c26906e00f8a315c704958823928d8018b28 # renovate: tag=v1.0.0
114
- with:
115
- args: zip -qq -r ./dargstack_rgen.zip ./src/
116
-
117
- - name: GitHub Release Asset
118
- uses: softprops/action-gh-release@1e07f4398721186383de40550babbdf2b84acfc5 # renovate: tag=v1
119
- with:
120
- files: dargstack_rgen.zip
121
- env:
122
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -1,49 +0,0 @@
1
- name: Scheduled Release
2
-
3
- on:
4
- schedule:
5
- - cron: '0 0 * * 1' # Every Monday at 00:00 AM UTC on the default branch
6
-
7
- jobs:
8
- analyze-tags:
9
- runs-on: ubuntu-latest
10
- outputs:
11
- previous-tag: ${{ steps.previoustag.outputs.tag }}
12
- timestamp-diff: ${{ steps.diff.outputs.timestamp-diff }}
13
- steps:
14
- - uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # renovate: tag=v2.4.0
15
- with:
16
- fetch-depth: 0
17
- - name: Get previous tag
18
- id: previoustag
19
- uses: "WyriHaximus/github-action-get-previous-tag@1.0.0"
20
- - name: Get seconds from previous tag to now
21
- id: diff
22
- shell: bash
23
- env:
24
- TIMESTAMP_TAG: ${{ steps.previoustag.outputs.timestamp }}
25
- run: |
26
- echo "::set-output name=timestamp-diff::$(expr $(printf '%(%s)T') - $TIMESTAMP_TAG)"
27
-
28
- schedule-release:
29
- runs-on: ubuntu-latest
30
- needs: analyze-tags
31
- if: needs.analyze-tags.outputs.timestamp-diff > 604800 # 604800 equal one week.
32
- steps:
33
- - uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # renovate: tag=v2.4.0
34
- with:
35
- token: ${{ secrets.GH_TOKEN }}
36
- - name: Get next minor version
37
- id: semvers
38
- uses: "WyriHaximus/github-action-next-semvers@v1.0"
39
- with:
40
- version: ${{ needs.analyze-tags.outputs.previous-tag }}
41
- - name: manifest Version
42
- uses: deef0000dragon1/json-edit-action@cb3f7455e89d659879ab7e4a55cbc9b10c36a713 # renovate: tag=v1
43
- env:
44
- KEY: scheduleVersion
45
- VALUE: ${{ steps.semvers.outputs.patch }}
46
- FILE: package.json
47
- - uses: stefanzweifel/git-auto-commit-action@abd87b7d94702070bef78dc1d56b6928b8fa9ecc # renovate: tag=v4.12.0
48
- with:
49
- commit_message: 'fix(release): schedule release'