File tree Expand file tree Collapse file tree 1 file changed +20
-5
lines changed Expand file tree Collapse file tree 1 file changed +20
-5
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ name: build
3
3
on :
4
4
push :
5
5
branches : [ dev ]
6
+ tags : [ '*' ]
6
7
paths-ignore :
7
8
- ' **/*.gitattributes'
8
9
- ' **/*.gitignore'
11
12
branches : [ dev ]
12
13
workflow_dispatch :
13
14
14
- permissions :
15
- contents : read
15
+ permissions : {}
16
16
17
17
jobs :
18
18
build :
19
19
name : build
20
20
runs-on : ubuntu-latest
21
21
22
+ permissions :
23
+ contents : read
24
+ id-token : write
25
+
22
26
steps :
23
27
24
28
- name : Checkout code
25
- uses : actions/checkout@v4
29
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
30
+ with :
31
+ filter : ' tree:0'
32
+ persist-credentials : false
33
+ show-progress : false
26
34
27
35
- name : Setup Node
28
- uses : actions/setup-node@v4
36
+ uses : actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
29
37
with :
30
38
node-version : ' 22.x'
39
+ registry-url : ' https://registry.npmjs.org'
31
40
32
41
- name : Install packages
33
42
run : |
34
43
npm ci
35
44
36
45
- name : Setup .NET SDK
37
- uses : actions/setup-dotnet@v4
46
+ uses : actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # v4.3.1
38
47
with :
39
48
dotnet-version : ' 9.0.x'
40
49
41
50
- name : Test
42
51
run : |
43
52
npm test
53
+
54
+ - name : Publish
55
+ if : |
56
+ github.event.repository.fork == false &&
57
+ startsWith(github.ref, 'refs/tags/')
58
+ run : npm publish
You can’t perform that action at this time.
0 commit comments