typescript-github-action-template 0.2.1-0 → 0.2.1-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.
@@ -0,0 +1,63 @@
1
+ From 7d91a6dac5c5f46b5e5526b0cb613865cc73eb3c Mon Sep 17 00:00:00 2001
2
+ From: Cat Chen <catchen@catchen.me>
3
+ Date: Mon, 1 Jul 2024 01:09:18 -0700
4
+ Subject: [PATCH] Optimized release printout
5
+
6
+ ---
7
+ .github/workflows/release.yml | 22 ++++++++++++++++++----
8
+ 1 file changed, 18 insertions(+), 4 deletions(-)
9
+
10
+ diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
11
+ index c2b9417..b7673e8 100644
12
+ --- a/.github/workflows/release.yml
13
+ +++ b/.github/workflows/release.yml
14
+ @@ -102,28 +102,42 @@ jobs:
15
+ if: ${{ !inputs.dry-run }}
16
+ with:
17
+ ref: ${{ needs.release.outputs.tag }}
18
+ +
19
+ - uses: actions/checkout@v4
20
+ if: ${{ inputs.dry-run }}
21
+ with:
22
+ ref: ${{ github.ref_name || github.ref }}
23
+ +
24
+ - uses: actions/setup-node@v4
25
+ with:
26
+ node-version-file: '.nvmrc'
27
+ check-latest: true
28
+ registry-url: https://registry.npmjs.org/
29
+ cache: yarn
30
+ - - env:
31
+ +
32
+ + - name: Build
33
+ + run: |
34
+ + yarn install
35
+ + yarn build
36
+ +
37
+ + - name: Publish
38
+ + env:
39
+ NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
40
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
41
+ DRY_RUN: ${{ inputs.dry-run || false }}
42
+ run: |
43
+ - yarn install
44
+ - yarn build
45
+ - npm whoami
46
+ + NPM_WHOAMI=$(npm whoami)
47
+ + echo "::notice::NPM username: $NPM_WHOAMI"
48
+ +
49
+ + echo "::group::npm config"
50
+ npm config ls -l
51
+ + echo "::endgroup::"
52
+ +
53
+ + echo "::group::npm config"
54
+ if [[ "$DRY_RUN" = true ]]
55
+ then
56
+ npm publish --dry-run
57
+ else
58
+ npm publish
59
+ fi
60
+ + echo "::endgroup::"
61
+ --
62
+ 2.45.2
63
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "typescript-github-action-template",
3
- "version": "0.2.1-0",
3
+ "version": "0.2.1-1",
4
4
  "description": "A template to create custom GitHub Action with TypeScript/JavaScript.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.js",