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
88on :
99 release :
1010 types : [published]
11+
1112jobs :
1213 build :
1314 runs-on : ubuntu-latest
@@ -16,12 +17,14 @@ jobs:
1617 id-token : write
1718
1819 steps :
19- - uses : actions/checkout@v4
20+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
21+
2022 # Setup .npmrc file to publish to npm
21- - uses : actions/setup-node@v4
23+ - uses : actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
2224 with :
2325 node-version : ' 22.x'
2426 registry-url : ' https://registry.npmjs.org'
27+
2528 - run : npm ci
2629 - run : npm publish --provenance
2730 env :
Original file line number Diff line number Diff line change 11name : Test
22
3- on :
4- push :
5- branches : [ '*' ]
6- pull_request :
7- branches : [ '*' ]
3+ on : ['push', 'pull_request']
84
95jobs :
106 build :
@@ -15,14 +11,16 @@ jobs:
1511 os : [ubuntu-latest, macos-latest, windows-latest]
1612 node-version : [18.x, 20.x, 22.x]
1713
14+ name : Node ${{ matrix.node-version }} - ${{ matrix.os }}
15+
1816 steps :
1917 - name : Cancel Previous Runs
20- uses : styfle/cancel-workflow-action@0.12.1
18+ uses : styfle/cancel-workflow-action@85880fa0301c86cca9da44039ee3bb12d3bedbfa # 0.12.1
2119 if : ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.id == github.event.pull_request.base.repo.id }}
2220 with :
2321 access_token : ${{ github.token }}
2422
25- - uses : actions/checkout@v4
23+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2624
2725 - name : Cache node modules
2826 uses : actions/cache@v4
3432 ${{ matrix.os }}-npm-
3533
3634 - name : Use Node.js ${{ matrix.node-version }}
37- uses : actions/setup-node@v4
35+ uses : actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
3836 with :
3937 node-version : ${{ matrix.node-version }}
4038
You can’t perform that action at this time.
0 commit comments