File tree Expand file tree Collapse file tree 2 files changed +11
-10
lines changed Expand file tree Collapse file tree 2 files changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ name: Publish Package to NPM
8
8
on :
9
9
release :
10
10
types : [published]
11
+
11
12
jobs :
12
13
build :
13
14
runs-on : ubuntu-latest
@@ -16,12 +17,14 @@ jobs:
16
17
id-token : write
17
18
18
19
steps :
19
- - uses : actions/checkout@v4
20
+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
21
+
20
22
# Setup .npmrc file to publish to npm
21
- - uses : actions/setup-node@v4
23
+ - uses : actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
22
24
with :
23
25
node-version : ' 22.x'
24
26
registry-url : ' https://registry.npmjs.org'
27
+
25
28
- run : npm ci
26
29
- run : npm publish --provenance
27
30
env :
Original file line number Diff line number Diff line change 1
1
name : Test
2
2
3
- on :
4
- push :
5
- branches : [ '*' ]
6
- pull_request :
7
- branches : [ '*' ]
3
+ on : ['push', 'pull_request']
8
4
9
5
jobs :
10
6
build :
@@ -15,14 +11,16 @@ jobs:
15
11
os : [ubuntu-latest, macos-latest, windows-latest]
16
12
node-version : [18.x, 20.x, 22.x]
17
13
14
+ name : Node ${{ matrix.node-version }} - ${{ matrix.os }}
15
+
18
16
steps :
19
17
- name : Cancel Previous Runs
20
- uses : styfle/cancel-workflow-action@0.12.1
18
+ uses : styfle/cancel-workflow-action@85880fa0301c86cca9da44039ee3bb12d3bedbfa # 0.12.1
21
19
if : ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.id == github.event.pull_request.base.repo.id }}
22
20
with :
23
21
access_token : ${{ github.token }}
24
22
25
- - uses : actions/checkout@v4
23
+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
26
24
27
25
- name : Cache node modules
28
26
uses : actions/cache@v4
34
32
${{ matrix.os }}-npm-
35
33
36
34
- name : Use Node.js ${{ matrix.node-version }}
37
- uses : actions/setup-node@v4
35
+ uses : actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
38
36
with :
39
37
node-version : ${{ matrix.node-version }}
40
38
You can’t perform that action at this time.
0 commit comments