@hurshb50/setup-ubuntu 0.0.0 → 0.0.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 +17 -17
- package/distribution/setup-ubuntu.mjs +8 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -13,33 +13,33 @@ CI uses npm's OIDC trusted publishing and staged publishing. No npm token. Nothi
|
|
|
13
13
|
|
|
14
14
|
1. Push the repo to GitHub. Run `gh auth login` first if needed.
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
16
|
+
```bash
|
|
17
|
+
git init -b main
|
|
18
|
+
git add .
|
|
19
|
+
git commit -m "Initial commit"
|
|
20
|
+
gh repo create setup-ubuntu --public --source . --remote origin --push
|
|
21
|
+
```
|
|
22
22
|
|
|
23
23
|
2. Log in to npm.
|
|
24
24
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
```bash
|
|
26
|
+
vp pm login
|
|
27
|
+
```
|
|
28
28
|
|
|
29
29
|
3. Publish the first version manually. npm cannot stage a new package.
|
|
30
30
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
```bash
|
|
32
|
+
vp pm publish
|
|
33
|
+
```
|
|
34
34
|
|
|
35
|
-
|
|
35
|
+
This publishes 0.0.0. Later releases go through CI.
|
|
36
36
|
|
|
37
37
|
4. Allow GitHub Actions to publish. In the package settings on npmjs.com, add a GitHub Actions trusted publisher.
|
|
38
38
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
39
|
+
- Organization or user: `hurshb50`
|
|
40
|
+
- Repository: `setup-ubuntu`
|
|
41
|
+
- Workflow filename: `publish.yaml`
|
|
42
|
+
- Allowed actions: staged publishing only
|
|
43
43
|
|
|
44
44
|
5. Optional: in package settings under Publishing access, set "Require two-factor authentication and disallow tokens". CI still works through OIDC.
|
|
45
45
|
|