@temir.ra/create-template 0.6.0 → 0.6.1
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.
- package/README.md +9 -8
- package/dist/CHANGELOG.md +7 -0
- package/dist/buildinfo.txt +1 -1
- package/dist/template/README.md +10 -11
- package/dist/template/package.json +1 -1
- package/dist/template/scripts/import-map.json +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -21,6 +21,7 @@ npm info "@temir.ra/create-template" version
|
|
|
21
21
|
npm create --no-install --no-git "@temir.ra/template@latest" .
|
|
22
22
|
|
|
23
23
|
# set metadata in package.json
|
|
24
|
+
# update <BINARY_NAME> in package.json#bin
|
|
24
25
|
|
|
25
26
|
npm update
|
|
26
27
|
```
|
|
@@ -90,19 +91,19 @@ npm publish
|
|
|
90
91
|
|
|
91
92
|
## CI/CD Workflows
|
|
92
93
|
|
|
93
|
-
### Build and Publish
|
|
94
|
+
### NPM Build and Publish
|
|
94
95
|
|
|
95
96
|
⚠️ `.npmrc` configuring the package registry and its authentication token is required for the workflow to work.
|
|
96
97
|
|
|
97
98
|
|Parameter|Type|Description|
|
|
98
99
|
|-----|-----|-----|
|
|
99
|
-
|`
|
|
100
|
-
|`
|
|
100
|
+
|`NPM_RUNNER_LABEL`|Variable|The label of the runner to use for the workflow.|
|
|
101
|
+
|`NPM_ACCESS_TOKEN`|Secret|The authentication token for the package registry.|
|
|
101
102
|
|
|
102
|
-
`.github/workflows/build-publish.yml`:
|
|
103
|
+
`.github/workflows/npm-build-publish.yml`:
|
|
103
104
|
|
|
104
105
|
```yaml
|
|
105
|
-
name: Build and Publish
|
|
106
|
+
name: NPM Build and Publish
|
|
106
107
|
|
|
107
108
|
on:
|
|
108
109
|
push:
|
|
@@ -111,13 +112,13 @@ on:
|
|
|
111
112
|
|
|
112
113
|
jobs:
|
|
113
114
|
publish:
|
|
114
|
-
runs-on: ${{ vars.
|
|
115
|
+
runs-on: ${{ vars.NPM_RUNNER_LABEL }}
|
|
115
116
|
steps:
|
|
116
117
|
- uses: actions/checkout@v4
|
|
117
118
|
|
|
118
119
|
- name: Install
|
|
119
120
|
env:
|
|
120
|
-
NPMJSORG_REGISTRY_AUTH_TOKEN: ${{ secrets.
|
|
121
|
+
NPMJSORG_REGISTRY_AUTH_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }}
|
|
121
122
|
run: npm ci
|
|
122
123
|
|
|
123
124
|
- name: Build
|
|
@@ -128,7 +129,7 @@ jobs:
|
|
|
128
129
|
|
|
129
130
|
- name: Publish
|
|
130
131
|
env:
|
|
131
|
-
NPMJSORG_REGISTRY_AUTH_TOKEN: ${{ secrets.
|
|
132
|
+
NPMJSORG_REGISTRY_AUTH_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }}
|
|
132
133
|
run: |
|
|
133
134
|
PKG_NAME=$(node -p "require('./package.json').name")
|
|
134
135
|
PKG_VERSION=$(node -p "require('./package.json').version")
|
package/dist/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Version 0
|
|
2
2
|
|
|
3
|
+
## 0.6.1
|
|
4
|
+
|
|
5
|
+
1. Updated template files from `ts-lib@0.15.1-pre.1` template.
|
|
6
|
+
2. Updated files from `self` as template.
|
|
7
|
+
3. Parametrized binary name in `template/package.json#bin`.
|
|
8
|
+
4. Updated workflow variables and secrets.
|
|
9
|
+
|
|
3
10
|
## 0.6.0
|
|
4
11
|
|
|
5
12
|
1. Updated template files from `ts-lib@0.15.0-pre.4` template.
|
package/dist/buildinfo.txt
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.6.
|
|
1
|
+
0.6.1+99d380f
|
package/dist/template/README.md
CHANGED
|
@@ -74,9 +74,8 @@ git push
|
|
|
74
74
|
# placeholder:
|
|
75
75
|
# <SCOPE_WITHOUT_AT: <SCOPE_WITHOUT_AT>
|
|
76
76
|
# <REGISTRY_ORIGIN_AND_PATH: <REGISTRY_ORIGIN_AND_PATH>
|
|
77
|
-
#
|
|
78
|
-
|
|
79
|
-
# forgejo.example.com/api/packages/<SCOPE_WITHOUT_AT>/npm/
|
|
77
|
+
# registry.npmjs.org/
|
|
78
|
+
# forgejo.example.com/api/packages/<SCOPE_WITHOUT_AT>/npm/
|
|
80
79
|
# <REGISTRY_AUTH_TOKEN_ENV_VAR: <REGISTRY_AUTH_TOKEN_ENV_VAR>
|
|
81
80
|
```
|
|
82
81
|
|
|
@@ -104,24 +103,24 @@ npm publish
|
|
|
104
103
|
|
|
105
104
|
## CI/CD Workflows
|
|
106
105
|
|
|
107
|
-
### Build and Publish
|
|
106
|
+
### NPM Build and Publish
|
|
108
107
|
|
|
109
108
|
⚠️ `.npmrc` configuring the package registry and its authentication token is required for the workflow to work.
|
|
110
109
|
|
|
111
110
|
|Parameter|Type|Description|
|
|
112
111
|
|-----|-----|-----|
|
|
113
|
-
|`
|
|
114
|
-
|`
|
|
112
|
+
|`NPM_RUNNER_LABEL`|Variable|The label of the runner to use for the workflow.|
|
|
113
|
+
|`NPM_ACCESS_TOKEN`|Secret|The authentication token for the package registry.|
|
|
115
114
|
|
|
116
115
|
```bash
|
|
117
116
|
# placeholder:
|
|
118
117
|
# <REGISTRY_AUTH_TOKEN_ENV_VAR: <REGISTRY_AUTH_TOKEN_ENV_VAR>
|
|
119
118
|
```
|
|
120
119
|
|
|
121
|
-
`.github/workflows/build-publish.yml`:
|
|
120
|
+
`.github/workflows/npm-build-publish.yml`:
|
|
122
121
|
|
|
123
122
|
```yaml
|
|
124
|
-
name: Build and Publish
|
|
123
|
+
name: NPM Build and Publish
|
|
125
124
|
|
|
126
125
|
on:
|
|
127
126
|
push:
|
|
@@ -130,13 +129,13 @@ on:
|
|
|
130
129
|
|
|
131
130
|
jobs:
|
|
132
131
|
publish:
|
|
133
|
-
runs-on: ${{ vars.
|
|
132
|
+
runs-on: ${{ vars.NPM_RUNNER_LABEL }}
|
|
134
133
|
steps:
|
|
135
134
|
- uses: actions/checkout@v4
|
|
136
135
|
|
|
137
136
|
- name: Install
|
|
138
137
|
env:
|
|
139
|
-
<REGISTRY_AUTH_TOKEN_ENV_VAR>: ${{ secrets.
|
|
138
|
+
<REGISTRY_AUTH_TOKEN_ENV_VAR>: ${{ secrets.NPM_ACCESS_TOKEN }}
|
|
140
139
|
run: npm ci
|
|
141
140
|
|
|
142
141
|
- name: Build
|
|
@@ -147,7 +146,7 @@ jobs:
|
|
|
147
146
|
|
|
148
147
|
- name: Publish
|
|
149
148
|
env:
|
|
150
|
-
<REGISTRY_AUTH_TOKEN_ENV_VAR>: ${{ secrets.
|
|
149
|
+
<REGISTRY_AUTH_TOKEN_ENV_VAR>: ${{ secrets.NPM_ACCESS_TOKEN }}
|
|
151
150
|
run: |
|
|
152
151
|
PKG_NAME=$(node -p "require('./package.json').name")
|
|
153
152
|
PKG_VERSION=$(node -p "require('./package.json').version")
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{}
|
|
1
|
+
{}
|